We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07b770c commit 3522f49Copy full SHA for 3522f49
src/httpserver.cpp
@@ -487,7 +487,11 @@ void StopHTTPServer()
487
// master that appears to be solved, so in the future that solution
488
// could be used again (if desirable).
489
// (see discussion in https://github.com/bitcoin/bitcoin/pull/6990)
490
+#if BOOST_VERSION >= 105000
491
if (!threadHTTP.try_join_for(boost::chrono::milliseconds(2000))) {
492
+#else
493
+ if (!threadHTTP.timed_join(boost::posix_time::milliseconds(2000))) {
494
+#endif
495
LogPrintf("HTTP event loop did not exit within allotted time, sending loopbreak\n");
496
event_base_loopbreak(eventBase);
497
threadHTTP.join();
0 commit comments