Skip to content

Commit 94b4b85

Browse files
committed
remove duplicate peer connected callback
1 parent 65ceb5e commit 94b4b85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

com.unity.netcode.gameobjects/Runtime/SceneManagement/NetworkSceneManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2614,7 +2614,7 @@ private void HandleSessionOwnerEvent(uint sceneEventId, ulong clientId)
26142614
// notification that the client is connected.
26152615
NetworkManager.ConnectionManager.InvokeOnClientConnectedCallback(clientId);
26162616

2617-
if (NetworkManager.IsHost || NetworkManager.LocalClient.IsSessionOwner)
2617+
if (NetworkManager.IsHost)
26182618
{
26192619
NetworkManager.ConnectionManager.InvokeOnPeerConnectedCallback(clientId);
26202620
}

0 commit comments

Comments
 (0)