wallet: Close wallet env lock file

Close .walletlock file when a BerkeleyEnvironment is deleted.
This commit is contained in:
João Barbosa
2019-01-31 00:05:18 +00:00
parent 8602a1e6ae
commit 2f8b8f479b
3 changed files with 9 additions and 0 deletions

View File

@@ -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()