Skip to content

Commit

Permalink
fix: fixing udp socket for macOS (#1049)
Browse files Browse the repository at this point in the history
dont need Connect() call if using sendTo
  • Loading branch information
James-Frowen committed Mar 1, 2022
1 parent 6e9a546 commit 67baff1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Assets/Mirage/Runtime/Sockets/Udp/UdpSocket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ public void Connect(IEndPoint endPoint)
Endpoint = (EndPointWrapper)endPoint;

socket = CreateSocket(Endpoint.inner);
socket.Connect(Endpoint.inner);
}

public void Close()
Expand Down Expand Up @@ -101,4 +100,4 @@ public void Send(IEndPoint endPoint, byte[] packet, int length)
socket.SendTo(packet, length, SocketFlags.None, netEndPoint);
}
}
}
}

0 comments on commit 67baff1

Please sign in to comment.