Skip to content

Commit 6ff5127

Browse files
fix
Reset the disconnect reason when the server-side is disconnecting a client.
1 parent 4206396 commit 6ff5127

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

com.unity.netcode.gameobjects/Runtime/Connection/NetworkConnectionManager.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1450,6 +1450,7 @@ internal void DisconnectClient(ulong clientId, string reason = null)
14501450
var transportId = ClientIdToTransportId(clientId);
14511451
if (transportId.Item2)
14521452
{
1453+
DisconnectReason = string.Empty;
14531454
GenerateDisconnectInformation(clientId, transportId.Item1, reason);
14541455
}
14551456

0 commit comments

Comments
 (0)