From 148677598bd47d99288aecb4938729318dbb7c0f Mon Sep 17 00:00:00 2001 From: Benau Date: Tue, 5 Jun 2018 11:21:21 +0800 Subject: [PATCH] Terminate connect to peer after kart selection start --- src/network/protocols/server_lobby.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/network/protocols/server_lobby.cpp b/src/network/protocols/server_lobby.cpp index dfc72909b..6c0a4343a 100644 --- a/src/network/protocols/server_lobby.cpp +++ b/src/network/protocols/server_lobby.cpp @@ -26,6 +26,7 @@ #include "network/game_setup.hpp" #include "network/network_config.hpp" #include "network/network_player_profile.hpp" +#include "network/protocol_manager.hpp" #include "network/protocols/connect_to_peer.hpp" #include "network/protocols/game_protocol.hpp" #include "network/protocols/game_events_protocol.hpp" @@ -592,6 +593,7 @@ void ServerLobby::startSelection(const Event *event) return; } + ProtocolManager::lock()->findAndTerminate(PROTOCOL_CONNECTION); if (m_server_registered) { unregisterServer(false/*now*/);