Ejemplo n.º 1
0
        /// <summary>
        /// Reset all control static variables used when multithreading.
        /// </summary>
        private bool Reset()
        {
            if (Threads == 0)
            {
                EmptyURLs        = 0;
                BadURLs          = 0;
                URLScraped       = 0;
                TerminateThreads = false;
                PauseThreads     = false;
                if (Mgr != null)
                {
                    Mgr.Reset();
                }

                return(true);
            }
            return(false);
        }