Skip to content
This repository was archived by the owner on Jul 2, 2025. It is now read-only.

Commit 3ea4e90

Browse files
committed
fix: clearing dictionary when socket closes. This should fix null issues for host and non host in p2p.
1 parent b14db02 commit 3ea4e90

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Assets/Mirage/Runtime/Transport/FizzySteamyMirror/SteamSocketManager.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ public void Dispose()
290290

291291
_onConnectionChange = null;
292292
SteamNetworkingSockets.DestroyPollGroup(_pollGroup);
293+
SteamConnections.Clear();
293294
}
294295

295296
#endregion
@@ -401,6 +402,7 @@ public async void Close()
401402
{
402403
case true:
403404
SteamNetworkingSockets.CloseListenSocket(_steamSocketManager.Socket);
405+
404406
break;
405407
case false:
406408

0 commit comments

Comments
 (0)