Add volatile
MODIFY
WalletWasabi/Blockchain/Transactions/TransactionStore.cs
WalletWasabi/Blockchain/Transactions/TransactionStore.cs
@@ -15,7 +15,7 @@ namespace WalletWasabi.Blockchain.Transactions
{
public class TransactionStore : IAsyncDisposable
{
- private bool _disposed;
+ private volatile bool _disposed;
public string WorkFolderPath { get; private set; }
public Network Network { get; private set; }

MODIFY
WalletWasabi/Stores/IndexStore.cs
WalletWasabi/Stores/IndexStore.cs
@@ -22,7 +22,7 @@ namespace WalletWasabi.Stores
public class IndexStore : IAsyncDisposable
{
private int _throttleId;
- private bool _disposed;
+ private volatile bool _disposed;
public IndexStore(string workFolderPath, Network network, SmartHeaderChain hashChain)
{

Add volatile