Skip to content

Commit 2cebbd2

Browse files
committed
Merge branch 'sam/feat/bump-NGO-to-1.1' of github.com:Unity-Technologies/com.unity.multiplayer.samples.coop into sam/feat/bump-NGO-to-1.1
* 'sam/feat/bump-NGO-to-1.1' of github.com:Unity-Technologies/com.unity.multiplayer.samples.coop: initializing number of reconnect attempts before starting the reconnect coroutine
2 parents 48573dd + 521c019 commit 2cebbd2

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)