mirror of
https://github.com/sbt/sbt.git
synced 2026-10-07 18:43:31 +02:00
fix issue with quiet waiting in source watcher
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user