Fixed super annoying bug that sometimes the server socket couldn't get created
This commit is contained in:
parent
8a4f94b749
commit
a1aeadfb7a
@ -228,10 +228,13 @@ void RemoteConnection_disconnect()
|
|||||||
{
|
{
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
closesocket(s_socket);
|
closesocket(s_socket);
|
||||||
|
close(s_serverSocket);
|
||||||
#else
|
#else
|
||||||
close(s_socket);
|
close(s_socket);
|
||||||
|
close(s_serverSocket);
|
||||||
#endif
|
#endif
|
||||||
s_socket = INVALID_SOCKET;
|
s_socket = INVALID_SOCKET;
|
||||||
|
s_socket = INVALID_SOCKET;
|
||||||
|
|
||||||
rlog(R_INFO, "disconnect!\n");
|
rlog(R_INFO, "disconnect!\n");
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user