mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
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:
parent
7fecfe3065
commit
45b711804b
@ -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!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user