break on error in client connection

This commit is contained in:
Lion Kortlepel 2024-03-03 22:39:29 +01:00
parent 387bce5033
commit ba82b8990e
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B

View File

@ -89,6 +89,7 @@ void ClientNetwork::handle_connection(ip::tcp::socket&& socket) {
spdlog::error("Unhandled exception in connection handler, connection closing.");
spdlog::debug("Exception: {}", e.what());
m_game_socket.close();
break;
}
}
}