fix issue with quiet waiting in source watcher

This commit is contained in:
Mark Harrah 2010-09-21 22:02:49 -04:00
parent e0ac454f65
commit 5b181eea6e
1 changed files with 2 additions and 4 deletions

View File

@ -20,12 +20,10 @@ object SourceModificationWatch
previousFileCount != fileCount
val (triggered, newCallbackCallTime) =
if (sourcesModified && !awaitingQuietPeriod)
if (sourcesModified)
(false, System.currentTimeMillis)
else if (!sourcesModified && awaitingQuietPeriod)
(true, lastCallbackCallTime)
else
(false, lastCallbackCallTime)
(awaitingQuietPeriod, lastCallbackCallTime)
val newState = new WatchState(newCallbackCallTime, fileCount, sourcesModified, if(triggered) count + 1 else count)
if(triggered)