ACR_ServerCommunicator.GameWorldManager.StartShutdownWatchdog C# (CSharp) Method

StartShutdownWatchdog() private method

Start the shutdown server watchdog. A timer is begun and if the server has not shut down cleanly before the timer elapses, then the process is hard aborted.
private StartShutdownWatchdog ( int WatchdogTimeout ) : void
WatchdogTimeout int Supplies the timeout, in seconds, for /// the shutdown watchdog to wait before aborting the process.
return void
        private void StartShutdownWatchdog(int WatchdogTimeout)
        {
            Timer WatchdogTimer;

            WatchdogTimer = new Timer(
                delegate(object State) { Environment.Exit(-1); },
                null,
                WatchdogTimeout * 1000, 
                Timeout.Infinite);

            ShutdownWatchdogTimer = WatchdogTimer;
        }