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

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;
}
}
}