mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
wallet: Close wallet env lock file
Close .walletlock file when a BerkeleyEnvironment is deleted.
This commit is contained in:
@@ -136,6 +136,8 @@ void BerkeleyEnvironment::Close()
|
||||
DbEnv((u_int32_t)0).remove(strPath.c_str(), 0);
|
||||
|
||||
if (error_file) fclose(error_file);
|
||||
|
||||
UnlockDirectory(strPath, ".walletlock");
|
||||
}
|
||||
|
||||
void BerkeleyEnvironment::Reset()
|
||||
|
||||
Reference in New Issue
Block a user