mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-15 16:59:18 +01: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:
parent
59ab60f37f
commit
9f90cbee19
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user