Fixed super annoying bug that sometimes the server socket couldn't get created

This commit is contained in:
Daniel Collin 2012-11-03 22:26:03 +01:00
parent 8a4f94b749
commit a1aeadfb7a

View File

@ -228,10 +228,13 @@ void RemoteConnection_disconnect()
{
#if defined(_WIN32)
closesocket(s_socket);
close(s_serverSocket);
#else
close(s_socket);
close(s_serverSocket);
#endif
s_socket = INVALID_SOCKET;
s_socket = INVALID_SOCKET;
rlog(R_INFO, "disconnect!\n");