Skip to content

Commit

Permalink
perf: no need to send initial empty notify
Browse files Browse the repository at this point in the history
  • Loading branch information
paulpach committed Feb 10, 2021
1 parent 8955c44 commit 8fbe346
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Assets/Mirror/Runtime/NetworkConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ public NetworkConnection(IConnection connection)
Assert.IsNotNull(connection);
this.connection = connection;

lastNotifySentTime = Time.unscaledTime;
// a black message to ensure a notify timeout
RegisterHandler<NotifyAck>(msg => { });
}
Expand Down

0 comments on commit 8fbe346

Please sign in to comment.