diff options
| author | Eric Lombrozo <[email protected]> | 2013-01-23 12:48:35 -0800 |
|---|---|---|
| committer | Eric Lombrozo <[email protected]> | 2013-06-24 09:33:15 -0700 |
| commit | e6fe8e77fb8816b8891a36467ba860d6b55934f4 (patch) | |
| tree | ee36f329c8e36ef55667c17862702eb03d1e9bb2 /src | |
| parent | Added locks on the setpwalletRegistered functions in main.cpp and added an Un... (diff) | |
| download | discoin-e6fe8e77fb8816b8891a36467ba860d6b55934f4.tar.xz discoin-e6fe8e77fb8816b8891a36467ba860d6b55934f4.zip | |
Calling UnregisterAllWallets() instead of UnregisterWallet(pwalletMain) in init.cpp
Diffstat (limited to 'src')
| -rw-r--r-- | src/init.cpp | 2 | ||||
| -rw-r--r-- | src/main.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index e88055bde..f6b2c91b4 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -119,7 +119,7 @@ void Shutdown() } bitdb.Flush(true); boost::filesystem::remove(GetPidFile()); - UnregisterWallet(pwalletMain); + UnregisterAllWallets(); delete pwalletMain; } diff --git a/src/main.h b/src/main.h index 9e0235fa5..7b77b0e3a 100644 --- a/src/main.h +++ b/src/main.h @@ -119,6 +119,8 @@ struct CBlockTemplate; void RegisterWallet(CWallet* pwalletIn); /** Unregister a wallet from core */ void UnregisterWallet(CWallet* pwalletIn); +/** Unregister all wallets from core */ +void UnregisterAllWallets(); /** Push an updated transaction to all registered wallets */ void SyncWithWallets(const uint256 &hash, const CTransaction& tx, const CBlock* pblock = NULL, bool fUpdate = false); |