Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #10237 from AdmiralCurtiss/netplay-server-crash
NetPlayServer: Clear remaining m_players when netplay thread ends so that their destructors can run while the ENetHost still exists.
  • Loading branch information
leoetlino committed Nov 21, 2021
2 parents 37247a5 + e2c4cf4 commit d5b917a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Core/Core/NetPlayServer.cpp
Expand Up @@ -357,7 +357,8 @@ void NetPlayServer::ThreadFunc()
ClearPeerPlayerId(player_entry.second.socket);
enet_peer_disconnect(player_entry.second.socket, 0);
}
} // namespace NetPlay
m_players.clear();
}

static void SendSyncIdentifier(sf::Packet& spac, const SyncIdentifier& sync_identifier)
{
Expand Down

0 comments on commit d5b917a

Please sign in to comment.