mirror of https://github.com/sbt/sbt.git
fix issue with quiet waiting in source watcher
This commit is contained in:
parent
e0ac454f65
commit
5b181eea6e
|
|
@ -20,12 +20,10 @@ object SourceModificationWatch
|
||||||
previousFileCount != fileCount
|
previousFileCount != fileCount
|
||||||
|
|
||||||
val (triggered, newCallbackCallTime) =
|
val (triggered, newCallbackCallTime) =
|
||||||
if (sourcesModified && !awaitingQuietPeriod)
|
if (sourcesModified)
|
||||||
(false, System.currentTimeMillis)
|
(false, System.currentTimeMillis)
|
||||||
else if (!sourcesModified && awaitingQuietPeriod)
|
|
||||||
(true, lastCallbackCallTime)
|
|
||||||
else
|
else
|
||||||
(false, lastCallbackCallTime)
|
(awaitingQuietPeriod, lastCallbackCallTime)
|
||||||
|
|
||||||
val newState = new WatchState(newCallbackCallTime, fileCount, sourcesModified, if(triggered) count + 1 else count)
|
val newState = new WatchState(newCallbackCallTime, fileCount, sourcesModified, if(triggered) count + 1 else count)
|
||||||
if(triggered)
|
if(triggered)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue