fix: Don't increment counter in Awake (#971)

Doing it in Awake and also before assigning to clients skips connection ID 1.
This commit is contained in:
MrGadget 2019-07-20 22:13:01 +00:00 committed by vis2k
parent 7fecfe3065
commit 45b711804b

View File

@ -44,11 +44,6 @@ void Awake()
server.NoDelay = NoDelay; server.NoDelay = NoDelay;
server.MaxMessageSize = serverMaxMessageSize; 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!"); Debug.Log("TelepathyTransport initialized!");
} }