private void RetryFailedActions() { lock (workQueue) { if (workQueue.Count == 0) { return; } if (Utility.CurrentTime().Subtract(lastAttempt) >= RetryInterval) { indexer.Unlock(); lastAttempt = N2.Utility.CurrentTime(); ExecuteEnqueuedActionsAsync(); } } }
private void RetryFailedActions() { lock (workQueue) { if (workQueue.Count == 0) { return; } if (Utility.CurrentTime().Subtract(lastAttempt) >= RetryInterval) { try { indexer.Unlock(); lastAttempt = N2.Utility.CurrentTime(); ExecuteEnqueuedActionsAsync(); } catch (Exception ex) { logger.Error("Error scheduling work", ex); } } } }