fCraft.Scheduler.EndShutdown C# (CSharp) Method

EndShutdown() static private method

static private EndShutdown ( ) : void
return void
        internal static void EndShutdown()
        {
            #if DEBUG_SCHEDULER
            Logger.Log( LogType.Debug, "Scheduler: EndShutdown..." );
            #endif
            try {
                if ( schedulerThread != null && schedulerThread.IsAlive ) {
                    schedulerThread.Join();
                }
                schedulerThread = null;
            } catch ( ThreadStateException ) { }
            try {
                if ( backgroundThread != null && backgroundThread.IsAlive ) {
                    backgroundThread.Join();
                }
                backgroundThread = null;
            } catch ( ThreadStateException ) { }
        }