From 004f9999464c7ef4a57b281dcbb407e5d193e798 Mon Sep 17 00:00:00 2001 From: Cory Fields Date: Wed, 7 Feb 2018 19:19:34 -0500 Subject: boost: drop boost threads for [alert|block|wallet]notify --- src/init.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/init.cpp') diff --git a/src/init.cpp b/src/init.cpp index 9f61989a2..ec2edd9ca 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 } } -- cgit v1.2.3