Terminate connect to peer after kart selection start

This commit is contained in:
Benau 2018-06-05 11:21:21 +08:00
parent 47455a71f3
commit 148677598b

View File

@ -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*/);