private void FireDelayedEventsIfQueueIsEmpty() {
if (this.Queue.IsEmpty && this.syncHasBeenDelayed) {
if (this.lastDelayedSyncWasFullSync) {
this.retryEvents.Clear();
} else {
foreach (var storedRetryEvent in this.retryEvents) {
Queue.AddEvent(storedRetryEvent);
}
}
this.Queue.AddEvent(new StartNextSyncEvent(this.lastDelayedSyncWasFullSync));
this.lastDelayedSyncWasFullSync = false;
this.syncHasBeenDelayed = false;
}
}