Permalink
Browse files

[TimeoutDispatcher] When there are zero items in the queue, wait forever

  • Loading branch information...
1 parent b0952a6 commit a2b47b5e5999cd3e6c280905b98518752b0d6e33 @alanmcgovern alanmcgovern committed Oct 10, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/MonoTorrent/MonoTorrent.Common/TimeoutDispatcher.cs
@@ -152,7 +152,7 @@ private void TimerThread (object state)
}
TimeSpan interval = hasItem ? item.Trigger - DateTime.UtcNow : TimeSpan.FromMilliseconds (-1);
- if (interval < TimeSpan.Zero) {
+ if (hasItem && interval < TimeSpan.Zero) {
interval = TimeSpan.Zero;
}

0 comments on commit a2b47b5

Please sign in to comment.