We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 868ae04 commit e2347f5Copy full SHA for e2347f5
Assets/BossRoom/Scripts/Shared/Net/ConnectionManagement/ClientGameNetPortal.cs
@@ -225,7 +225,11 @@ private IEnumerator TryToReconnect(string lobbyCode)
225
// If the coroutine has not been stopped before this, it means we failed to connect during all attempts
226
Debug.Log("All tries failed, returning to main menu");
227
m_LobbyServiceFacade.ForceLeaveLobbyAttempt();
228
+ if (NetworkManager.Singleton.IsListening)
229
+ {
230
NetworkManager.Singleton.Shutdown();
231
+ }
232
+
233
SceneLoaderWrapper.Instance.LoadScene("MainMenu");
234
if (!DisconnectReason.HasTransitionReason)
235
{
0 commit comments