aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/api/wallet.cpp
diff options
context:
space:
mode:
authorstoffu <stoffu@protonmail.ch>2018-06-12 15:29:33 +0900
committerstoffu <stoffu@protonmail.ch>2018-06-28 09:41:43 +0900
commit3d623a86d17d4f9884b766fc8e07fc1799ae0a9f (patch)
treed0f93c9ddf6b3ca40c29eaba37e1f1a722bd6304 /src/wallet/api/wallet.cpp
parentutil: add file_locker class (diff)
downloadmonero-3d623a86d17d4f9884b766fc8e07fc1799ae0a9f.tar.xz
wallet: prevent the same wallet file from being opened by multiple processes
Diffstat (limited to '')
-rw-r--r--src/wallet/api/wallet.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp
index c7dbd29e4..e2c4fe7af 100644
--- a/src/wallet/api/wallet.cpp
+++ b/src/wallet/api/wallet.cpp
@@ -721,6 +721,7 @@ bool WalletImpl::close(bool store)
LOG_PRINT_L1("Calling wallet::stop...");
m_wallet->stop();
LOG_PRINT_L1("wallet::stop done");
+ m_wallet->deinit();
result = true;
clearStatus();
} catch (const std::exception &e) {