Skip to content

Commit

Permalink
fix: SendToReady sends to that exact connection if it is detected as …
Browse files Browse the repository at this point in the history
…local connection, instead of falling back to the .localConnection field which might be something completely different.
  • Loading branch information
miwarnec committed Feb 25, 2020
1 parent 4b90aaf commit 4596b19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Mirror/Runtime/NetworkServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ public static bool SendToReady(NetworkIdentity identity, short msgType, MessageB

// use local connection directly because it doesn't send via transport
if (kvp.Value is ULocalConnectionToClient)
result &= localConnection.Send(segment);
result &= kvp.Value.Send(segment);
// gather all internet connections
else
connectionIdsCache.Add(kvp.Key);
Expand Down

0 comments on commit 4596b19

Please sign in to comment.