Skip to content

Commit

Permalink
Fix polarity error causing timeouts not to be periodically cleaned up
Browse files Browse the repository at this point in the history
  • Loading branch information
synhershko committed Sep 30, 2014
1 parent 3b69bff commit 34b2901
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public List<Tuple<string, DateTime>> GetNextChunk(DateTime startSlice, out DateT
// Allow for occasionally cleaning up old timeouts for edge cases where timeouts have been
// added after startSlice have been set to a later timout and we might have missed them
// because of stale indexes.
if (lastCleanupTime.Add(TriggerCleanupEvery) > now || lastCleanupTime == DateTime.MinValue)
if (lastCleanupTime.Add(TriggerCleanupEvery) < now || lastCleanupTime == DateTime.MinValue)
{
results.AddRange(GetCleanupChunk(startSlice));
}
Expand Down

0 comments on commit 34b2901

Please sign in to comment.