Fixed issue where players were not disconnecting correctly

This commit is contained in:
Ziek
2015-02-05 22:16:34 -08:00
parent 074d688884
commit 1dea3780a7
4 changed files with 29 additions and 21 deletions

View File

@ -354,16 +354,6 @@ void ReleaseTraversalClient()
if (!g_TraversalClient)
return;
if (g_OldPort != 0)
{
// If we were listening at a specific port, kill the
// TraversalClient to avoid hanging on to the port.
g_TraversalClient.reset();
g_MainNetHost.reset();
}
else
{
// Reset any pending connection attempts.
g_TraversalClient->Reset();
}
}
g_TraversalClient.release();
g_MainNetHost.release();
}