Skip to content
This repository was archived by the owner on Sep 15, 2024. It is now read-only.

Commit 5fba869

Browse files
revert
1 parent bcc80f8 commit 5fba869

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Scripts/Netcode/Client/GameClient.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ private void HandlePeerLeave(DisconnectOpcode opcode)
3737
Disconnected = true;
3838
Connected = 0;
3939
NetworkManager.GodotCmds.Enqueue(new GodotCmd(GodotOpcode.Disconnect, opcode));
40+
if (CancelTokenSource != null)
41+
CancelTokenSource.Cancel();
4042
}
4143
}
4244
}

0 commit comments

Comments
 (0)