diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2018-02-07 19:19:34 -0500 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2018-02-08 14:35:29 -0500 |
commit | 004f9999464c7ef4a57b281dcbb407e5d193e798 (patch) | |
tree | 2fd9df9f73784808f615402cc1a182f53f3f6abd /src/init.cpp | |
parent | 08272671d2218eb69589a0639cbb61ef7cde3004 (diff) | |
download | bitcoin-004f9999464c7ef4a57b281dcbb407e5d193e798.tar.xz |
boost: drop boost threads for [alert|block|wallet]notify
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index 9f61989a26..ec2edd9cac 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -546,7 +546,8 @@ static void BlockNotifyCallback(bool initialSync, const CBlockIndex *pBlockIndex std::string strCmd = gArgs.GetArg("-blocknotify", ""); if (!strCmd.empty()) { boost::replace_all(strCmd, "%s", pBlockIndex->GetBlockHash().GetHex()); - boost::thread t(runCommand, strCmd); // thread runs free + std::thread t(runCommand, strCmd); + t.detach(); // thread runs free } } |