diff --git a/GServer/GServer/HostExtensions.cs b/GServer/GServer/HostExtensions.cs index deb8d5c..45f11ad 100644 --- a/GServer/GServer/HostExtensions.cs +++ b/GServer/GServer/HostExtensions.cs @@ -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); } } } -} \ No newline at end of file +}