BitMaker.Miner.Pool.RefreshThreadMain C# (CSharp) Method

RefreshThreadMain() static private method

Entry point for thread responsible for detecting changes in the current block number.
static private RefreshThreadMain ( ) : void
return void
        void RefreshThreadMain()
        {
            while (run)
            {
                try
                {
                    if (longPollUrl == null)
                    {
                        GetWorkRpc(null, null);
                        Thread.Sleep(refreshPeriod);
                    }
                    else
                        GetWorkLp(null, null);
                }
                catch (Exception)
                {
                    Thread.Sleep(5000);
                }
            }
        }