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 fa64636 commit 793667aCopy full SHA for 793667a
src/httpserver.cpp
@@ -481,6 +481,8 @@ void StopHTTPServer()
481
}
482
if (eventBase) {
483
LogPrint(BCLog::HTTP, "Waiting for HTTP event thread to exit\n");
484
+ // Exit the event loop as soon as there are no active events.
485
+ event_base_loopexit(eventBase, nullptr);
486
// Give event loop a few seconds to exit (to send back last RPC responses), then break it
487
// Before this was solved with event_base_loopexit, but that didn't work as expected in
488
// at least libevent 2.0.21 and always introduced a delay. In libevent
0 commit comments