mono / ngit

Automated jgit port to c#
261 stars 152 forks source link

Update ScheduledThreadPoolExecutor.cs #76

Open benwulfe opened 7 years ago

benwulfe commented 7 years ago

There is a small chance that -1 could be a calculated result for the next time to wait, which would result in an inifinite wait duration (instead of 0). Since AddTask will not Set if the new task isnt added in the first slot, this has the result of completely stalling the scheduler.