mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-10 04:30:12 +02:00
Don't stop the whole IO context
This would break plugin groups since the different plugins share a single IO context.
This commit is contained in:
@@ -442,7 +442,7 @@ class EventHandler {
|
|||||||
// sure all outstanding jobs have been processed and then drop all work
|
// sure all outstanding jobs have been processed and then drop all work
|
||||||
// from the IO context
|
// from the IO context
|
||||||
std::lock_guard lock(active_secondary_requests_mutex);
|
std::lock_guard lock(active_secondary_requests_mutex);
|
||||||
io_context.stop();
|
acceptor.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@@ -471,13 +471,14 @@ class EventHandler {
|
|||||||
const boost::system::error_code& error,
|
const boost::system::error_code& error,
|
||||||
boost::asio::local::stream_protocol::socket secondary_socket) {
|
boost::asio::local::stream_protocol::socket secondary_socket) {
|
||||||
if (error.failed()) {
|
if (error.failed()) {
|
||||||
|
// On the Wine side it's expected that the main socket
|
||||||
|
// connection will be dropped during shutdown, so we can
|
||||||
|
// silently ignore any related socket errors on the Wine
|
||||||
|
// side
|
||||||
if (logging) {
|
if (logging) {
|
||||||
auto [logger, is_dispatch] = *logging;
|
auto [logger, is_dispatch] = *logging;
|
||||||
logger.log("Failure while accepting connections: " +
|
logger.log("Failure while accepting connections: " +
|
||||||
error.message());
|
error.message());
|
||||||
} else {
|
|
||||||
std::cerr << "Failure while accepting connections: "
|
|
||||||
<< error.message() << std::endl;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user