Send go back to lobby message to all peers in server
This commit is contained in:
parent
e3a006c151
commit
7c34818c04
@ -1039,7 +1039,7 @@ void ServerLobby::update(int ticks)
|
||||
NetworkString* back_to_lobby = getNetworkString(1);
|
||||
back_to_lobby->setSynchronous(true);
|
||||
back_to_lobby->addUInt8(LE_BACK_LOBBY).addUInt8(BLR_NONE);
|
||||
sendMessageToPeers(back_to_lobby, /*reliable*/true);
|
||||
sendMessageToPeersInServer(back_to_lobby, /*reliable*/true);
|
||||
delete back_to_lobby;
|
||||
std::lock_guard<std::mutex> lock(m_connection_mutex);
|
||||
resetServer();
|
||||
|
Loading…
Reference in New Issue
Block a user