Skip to content

Commit

Permalink
fix for old C#
Browse files Browse the repository at this point in the history
  • Loading branch information
RevenantX committed Oct 14, 2021
1 parent f91db9f commit eac1e4a
Show file tree
Hide file tree
Showing 3 changed files with 799 additions and 2 deletions.
3 changes: 2 additions & 1 deletion LiteNetLib/NetManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,8 @@ internal int SendRaw(byte[] message, int start, int length, IPEndPoint remoteEnd

case SocketError.HostUnreachable:
case SocketError.NetworkUnreachable:
if (DisconnectOnUnreachable && TryGetPeer(remoteEndPoint, out var fromPeer))
NetPeer fromPeer;
if (DisconnectOnUnreachable && TryGetPeer(remoteEndPoint, out fromPeer))
{
DisconnectPeerForce(
fromPeer,
Expand Down
Binary file modified LiteNetLibSampleUnity/Assets/LiteNetLib.dll
Binary file not shown.
Loading

0 comments on commit eac1e4a

Please sign in to comment.