mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-03 14:49:22 +00: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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue