mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-12 14:46:49 +01:00
NetPlayServer: Clear remaining m_players when netplay thread ends so that their destructors can run while the ENetHost still exists.
This commit is contained in:
parent
e5a4a86672
commit
e2c4cf49e2
@ -357,7 +357,8 @@ void NetPlayServer::ThreadFunc()
|
|||||||
ClearPeerPlayerId(player_entry.second.socket);
|
ClearPeerPlayerId(player_entry.second.socket);
|
||||||
enet_peer_disconnect(player_entry.second.socket, 0);
|
enet_peer_disconnect(player_entry.second.socket, 0);
|
||||||
}
|
}
|
||||||
} // namespace NetPlay
|
m_players.clear();
|
||||||
|
}
|
||||||
|
|
||||||
static void SendSyncIdentifier(sf::Packet& spac, const SyncIdentifier& sync_identifier)
|
static void SendSyncIdentifier(sf::Packet& spac, const SyncIdentifier& sync_identifier)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user