diff options
author | João Barbosa <joao.paulo.barbosa@gmail.com> | 2019-01-31 00:05:18 +0000 |
---|---|---|
committer | João Barbosa <joao.paulo.barbosa@gmail.com> | 2019-03-12 23:24:11 +0000 |
commit | 2e9e904a5d58e0d288e9abc1cbc602a8674bc1a2 (patch) | |
tree | 54c8e417a1a9c1ae964534a4b4811dce9d33b6a5 /src/wallet | |
parent | 22cdb6cf590d61668c85c1c08dcc15b4e95921c6 (diff) |
wallet: Close wallet env lock file
Close .walletlock file when a BerkeleyEnvironment is deleted.
Github-Pull: #15297
Rebased-From: 2f8b8f4
Diffstat (limited to 'src/wallet')
-rw-r--r-- | src/wallet/db.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/db.cpp b/src/wallet/db.cpp index 7e7fd24a8c..89b68495ad 100644 --- a/src/wallet/db.cpp +++ b/src/wallet/db.cpp @@ -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() |