mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
Fixed issue where players were not disconnecting correctly
This commit is contained in:
parent
074d688884
commit
1dea3780a7
4 changed files with 29 additions and 21 deletions
|
@ -354,16 +354,6 @@ void ReleaseTraversalClient()
|
|||
if (!g_TraversalClient)
|
||||
return;
|
||||
|
||||
if (g_OldPort != 0)
|
||||
{
|
||||
// If we were listening at a specific port, kill the
|
||||
// TraversalClient to avoid hanging on to the port.
|
||||
g_TraversalClient.reset();
|
||||
g_MainNetHost.reset();
|
||||
}
|
||||
else
|
||||
{
|
||||
// Reset any pending connection attempts.
|
||||
g_TraversalClient->Reset();
|
||||
}
|
||||
}
|
||||
g_TraversalClient.release();
|
||||
g_MainNetHost.release();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue