A few odds and ends after lookahead patch (#215)

This commit is contained in:
Lee *!* Clagett
2025-12-07 11:37:17 -05:00
committed by Lee *!* Clagett
parent 16111cae2c
commit 770e3b0ca4
6 changed files with 20 additions and 14 deletions

View File

@@ -1078,6 +1078,9 @@ namespace lws
if (!lws_server_addr.empty())
rpc::scanner::server::start_acceptor(server, lws_server_addr, std::move(lws_server_pass));
// This is a hack to prevent racy shutdown
boost::asio::post(self.io_, [&self] () { if (!self.is_running()) self.stop(); });
// Blocks until sigint, local scanner issue, storage issue, or exception
self.io_.restart();
self.io_.run();