Skip to content

Commit

Permalink
fix: Don't increment counter in Awake (#971)
Browse files Browse the repository at this point in the history
Doing it in Awake and also before assigning to clients skips connection ID 1.
  • Loading branch information
MrGadget authored and miwarnec committed Jul 20, 2019
1 parent 7fecfe3 commit 45b7118
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Assets/Mirror/Runtime/Transport/TelepathyTransport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ void Awake()
server.NoDelay = NoDelay;
server.MaxMessageSize = serverMaxMessageSize;

// HLAPI's local connection uses hard coded connectionId '0', so we
// need to make sure that external connections always start at '1'
// by simple eating the first one before the server starts
Telepathy.Server.NextConnectionId();

Debug.Log("TelepathyTransport initialized!");
}

Expand Down

0 comments on commit 45b7118

Please sign in to comment.