NetPlayServer: Close the socket when we're done with it
This would allow a new socket to be created with the same port after we close it. However, we can't reuse it immediately because of the TCP TIME-WAIT state.
This commit is contained in:
parent
59ab60f37f
commit
9f90cbee19
|
@ -26,6 +26,7 @@ NetPlayServer::~NetPlayServer()
|
|||
{
|
||||
m_do_loop = false;
|
||||
m_thread.join();
|
||||
m_socket.Close();
|
||||
}
|
||||
|
||||
#ifdef USE_UPNP
|
||||
|
|
Loading…
Reference in New Issue