private void QueueCheckerLoop() { while (true) { var operation = _queue.Get(); if (operation != null) { ProcessOperation(operation); _queue.Done(); } Thread.Sleep(5000); } }
private void QueueCheckerLoop() { while (true) { try { var operation = _queue.Get(); if (operation != null) { ProcessOperation(operation); _queue.Done(); } Thread.Sleep(5000); } catch { Logger.Log("Error with QueueCheckerLoop", LogLevel.Error); } } }