mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-17 07:34:24 +01:00
fix issue with racing
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Product>Wabisabi Coinjoin</Product>
|
<Product>Wabisabi Coinjoin</Product>
|
||||||
<Description>Allows you to integrate your btcpayserver store with coinjoins.</Description>
|
<Description>Allows you to integrate your btcpayserver store with coinjoins.</Description>
|
||||||
<Version>1.0.64</Version>
|
<Version>1.0.65</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<!-- Plugin development properties -->
|
<!-- Plugin development properties -->
|
||||||
|
|||||||
@@ -245,9 +245,9 @@ public class WalletProvider : PeriodicRunner,IWalletProvider
|
|||||||
public async Task SettingsUpdated(string storeId, WabisabiStoreSettings wabisabiSettings)
|
public async Task SettingsUpdated(string storeId, WabisabiStoreSettings wabisabiSettings)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (wabisabiSettings.Settings.All(settings => !settings.Enabled) || !wabisabiSettings.Active)
|
if (wabisabiSettings.Settings.All(settings => !settings.Enabled) || wabisabiSettings.Active == false)
|
||||||
{
|
{
|
||||||
_cachedSettings?.Remove(storeId);
|
_cachedSettings.AddOrReplace(storeId, wabisabiSettings);
|
||||||
await UnloadWallet(storeId);
|
await UnloadWallet(storeId);
|
||||||
}else if (LoadedWallets.TryGetValue(storeId, out var existingWallet))
|
}else if (LoadedWallets.TryGetValue(storeId, out var existingWallet))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user