From 5b181eea6ebd29488d8df0a573abff7c4dad12e3 Mon Sep 17 00:00:00 2001 From: Mark Harrah Date: Tue, 21 Sep 2010 22:02:49 -0400 Subject: [PATCH] fix issue with quiet waiting in source watcher --- util/io/SourceModificationWatch.scala | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/util/io/SourceModificationWatch.scala b/util/io/SourceModificationWatch.scala index 7c9e183ee..4b7e709bb 100644 --- a/util/io/SourceModificationWatch.scala +++ b/util/io/SourceModificationWatch.scala @@ -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)