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.
2 parents 0b0fc17 + 3522f49 commit f91e29fCopy full SHA for f91e29f
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