Skip to content

Commit

Permalink
Update HostExtensions.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
fexolm authored Mar 17, 2019
1 parent 94c75cf commit 6f7d664
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions GServer/GServer/HostExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,11 @@ public static class HostExtensions
{
public static void Ping(this Host host)
{
try
foreach (var connection in host.GetConnections())
{
foreach (var connection in host.GetConnections())
{
if (connection.EndPoint == null) continue;
host.Send(new Message((short)MessageType.Ping, Mode.Reliable), connection);
}
}
catch
{
System.Console.WriteLine("kek");
if (connection.EndPoint == null) continue;
host.Send(new Message((short)MessageType.Ping, Mode.Reliable), connection);
}
}
}
}
}

0 comments on commit 6f7d664

Please sign in to comment.