Properly clean up players that have been kicked as duplicates.

This should fix the issue with null pointers in PlayerManager::players.
This commit is contained in:
2020-10-02 01:37:50 +02:00
parent 600c26024b
commit 4fe4aeb0d3
3 changed files with 16 additions and 5 deletions

View File

@@ -21,6 +21,8 @@ public:
CNShardServer(uint16_t p);
static void _killConnection(CNSocket *cns);
void newConnection(CNSocket* cns);
void killConnection(CNSocket* cns);
void onStep();