Improve NetPlay connection error handling

This commit is contained in:
Techjar
2018-07-01 22:52:43 -04:00
parent f5730e1636
commit a29cdb5713
6 changed files with 24 additions and 12 deletions

View File

@ -173,7 +173,7 @@ void NetPlayServer::ThreadFunc()
delete (PlayerId*)netEvent.peer->data;
netEvent.peer->data = nullptr;
}
enet_peer_disconnect(accept_peer, 0);
enet_peer_disconnect_later(accept_peer, 0);
}
}
break;