mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
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:
@ -26,6 +26,7 @@ NetPlayServer::~NetPlayServer()
|
|||||||
{
|
{
|
||||||
m_do_loop = false;
|
m_do_loop = false;
|
||||||
m_thread.join();
|
m_thread.join();
|
||||||
|
m_socket.Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef USE_UPNP
|
#ifdef USE_UPNP
|
||||||
|
Reference in New Issue
Block a user