Browse Source

Merge pull request #7065

3522f49 http: add Boost 1.49 compatibility (Wladimir J. van der Laan)
0.13
Wladimir J. van der Laan 9 years ago
parent
commit
f91e29fd4d
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 4
      src/httpserver.cpp

4
src/httpserver.cpp

@ -487,7 +487,11 @@ void StopHTTPServer()
// master that appears to be solved, so in the future that solution // master that appears to be solved, so in the future that solution
// could be used again (if desirable). // could be used again (if desirable).
// (see discussion in https://github.com/bitcoin/bitcoin/pull/6990) // (see discussion in https://github.com/bitcoin/bitcoin/pull/6990)
#if BOOST_VERSION >= 105000
if (!threadHTTP.try_join_for(boost::chrono::milliseconds(2000))) { if (!threadHTTP.try_join_for(boost::chrono::milliseconds(2000))) {
#else
if (!threadHTTP.timed_join(boost::posix_time::milliseconds(2000))) {
#endif
LogPrintf("HTTP event loop did not exit within allotted time, sending loopbreak\n"); LogPrintf("HTTP event loop did not exit within allotted time, sending loopbreak\n");
event_base_loopbreak(eventBase); event_base_loopbreak(eventBase);
threadHTTP.join(); threadHTTP.join();

Loading…
Cancel
Save