Add some curly brackets
MODIFY
WalletWasabi/Blockchain/Keys/KeyManager.cs
WalletWasabi/Blockchain/Keys/KeyManager.cs
@@ -199,31 +199,41 @@ namespace WalletWasabi.Blockchain.Keys
public void ToFile()
{
lock (HdPubKeysLock)
+ {
lock (BlockchainStateLock)
+ {
lock (ToFileLock)
{
ToFileNoLock();
}
}
+ }
+ }
private void ToFileNoBlockchainStateLock()
{
lock (HdPubKeysLock)
+ {
lock (ToFileLock)
{
ToFileNoLock();
}
}
+ }
public void ToFile(string filePath)
{
lock (HdPubKeysLock)
+ {
lock (BlockchainStateLock)
+ {
lock (ToFileLock)
{
ToFileNoLock(filePath);
}
}
+ }
+ }
private void ToFileNoLock()
{

Add some curly brackets