public static void Update() { lock (RCon.Commands) { while (RCon.Commands.Count > 0) { RCon.OnCommand(RCon.Commands.Dequeue()); } } if (RCon.listener == null) { return; } if (RCon.lastRunTime + 0.02f >= UnityEngine.Time.realtimeSinceStartup) { return; } RCon.lastRunTime = UnityEngine.Time.realtimeSinceStartup; try { RCon.bannedAddresses.RemoveAll((RCon.BannedAddresses x) => x.banTime < UnityEngine.Time.realtimeSinceStartup); RCon.listener.Cycle(); } catch (Exception exception) { Debug.LogWarning("Rcon Exception"); Debug.LogException(exception); } }
public static void Update() { lock (RCon.Commands) { while (RCon.Commands.Count > 0) { RCon.OnCommand(RCon.Commands.Dequeue()); } } if (RCon.listener == null || (double)RCon.lastRunTime + 0.0199999995529652 >= (double)Time.get_realtimeSinceStartup()) { return; } RCon.lastRunTime = Time.get_realtimeSinceStartup(); try { RCon.bannedAddresses.RemoveAll((Predicate <RCon.BannedAddresses>)(x => (double)x.banTime < (double)Time.get_realtimeSinceStartup())); RCon.listener.Cycle(); } catch (Exception ex) { Debug.LogWarning((object)"Rcon Exception"); Debug.LogException(ex); } }