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:
Jasper St. Pierre 2013-08-05 06:20:00 -04:00
parent 59ab60f37f
commit 9f90cbee19
1 changed files with 1 additions and 0 deletions

View File

@ -26,6 +26,7 @@ NetPlayServer::~NetPlayServer()
{
m_do_loop = false;
m_thread.join();
m_socket.Close();
}
#ifdef USE_UPNP