diff options
| author | Cory Fields <[email protected]> | 2018-02-07 19:19:34 -0500 |
|---|---|---|
| committer | Cory Fields <[email protected]> | 2018-02-08 14:35:29 -0500 |
| commit | 004f9999464c7ef4a57b281dcbb407e5d193e798 (patch) | |
| tree | 2fd9df9f73784808f615402cc1a182f53f3f6abd /src/wallet/wallet.cpp | |
| parent | boost: drop boost threads from torcontrol (diff) | |
| download | discoin-004f9999464c7ef4a57b281dcbb407e5d193e798.tar.xz discoin-004f9999464c7ef4a57b281dcbb407e5d193e798.zip | |
boost: drop boost threads for [alert|block|wallet]notify
Diffstat (limited to 'src/wallet/wallet.cpp')
| -rw-r--r-- | src/wallet/wallet.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 2b8019395..3b8ecce6d 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -34,7 +34,6 @@ #include <future> #include <boost/algorithm/string/replace.hpp> -#include <boost/thread.hpp> std::vector<CWalletRef> vpwallets; /** Transaction fee set by the user */ @@ -976,7 +975,8 @@ bool CWallet::AddToWallet(const CWalletTx& wtxIn, bool fFlushOnClose) if (!strCmd.empty()) { boost::replace_all(strCmd, "%s", wtxIn.GetHash().GetHex()); - boost::thread t(runCommand, strCmd); // thread runs free + std::thread t(runCommand, strCmd); + t.detach(); // thread runs free } return true; |