Skip to content

Commit b8b6dfc

Browse files
authored
fix: Clearing TransportEvent delegate event when failing to host. [MTT-3421] (#1938)
* fix: Clearing TransportEvent delegate event when failing to host. Fixes an issue where hosting again after hosting with invalid params would result in doubly-delivered messages followed by time-out * fix: Clearing TransportEvent delegate (changelog)
1 parent 4c59869 commit b8b6dfc

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

com.unity.netcode.gameobjects/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
66

77
Additional documentation and release notes are available at [Multiplayer Documentation](https://docs-multiplayer.unity3d.com).
88

9+
### Fixed
10+
11+
- Fixed: Hosting again after failing to host now works correctly
12+
913
## [1.0.0-pre.8] - 2022-04-27
1014

1115
### Changed

com.unity.netcode.gameobjects/Runtime/Core/NetworkManager.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,6 +1175,8 @@ public void Shutdown(bool discardMessageQueue = false)
11751175
m_ShuttingDown = true;
11761176
m_StopProcessingMessages = discardMessageQueue;
11771177
}
1178+
1179+
NetworkConfig.NetworkTransport.OnTransportEvent -= HandleRawTransportPoll;
11781180
}
11791181

11801182
internal void ShutdownInternal()

0 commit comments

Comments
 (0)