Skip to content

Commit 521c019

Browse files
committed
initializing number of reconnect attempts before starting the reconnect coroutine
1 parent 4b79d59 commit 521c019

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/Scripts/ConnectionManagement/ConnectionState/ClientReconnectingState.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ class ClientReconnectingState : ClientConnectingState
2525

2626
public override void Enter()
2727
{
28+
m_NbAttempts = 0;
2829
m_LobbyCode = m_LobbyServiceFacade.CurrentUnityLobby != null ? m_LobbyServiceFacade.CurrentUnityLobby.LobbyCode : "";
2930
m_ReconnectCoroutine = m_ConnectionManager.StartCoroutine(ReconnectCoroutine());
30-
m_NbAttempts = 0;
3131
}
3232

3333
public override void Exit()

0 commit comments

Comments
 (0)