Skip to content

Commit

Permalink
fix: sends dont cause endpoint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
phodoval committed Sep 1, 2021
1 parent 09460a7 commit 32fc25f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Assets/Mirage/Runtime/Sockets/FacepunchSteam/SteamSocket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ public int Receive(byte[] buffer, out IEndPoint endPoint) {
}

public void Send(IEndPoint endPoint, byte[] packet, int length) {
tmpEndPoint = (SteamEndPoint)endPoint;
manager.Send(packet, length, tmpEndPoint);
var steamEndPoint = (SteamEndPoint)endPoint;
manager.Send(packet, length, steamEndPoint);
}

public static byte[] CreateDisconnectPacket() {
Expand Down

0 comments on commit 32fc25f

Please sign in to comment.