Permalink
Browse files

fix: watched folder checked the wrong Timer

  • Loading branch information...
MikeMitterer committed Apr 21, 2015
1 parent a2c6eec commit 267f4f91d160542a1bb535b49a527a3bb9d20868
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/src/Application.dart
View
@@ -125,15 +125,15 @@ class Application {
Validate.notBlank(folder);
Validate.notNull(config);
_logger.fine('Observing $folder...');
_logger.info('Observing $folder...');
final File srcDir = new File(folder);
srcDir.watch(recursive: true).where((final file) => (!file.path.contains("packages"))).listen((final FileSystemEvent event) {
_logger.fine(event.toString());
if(timerWatch == null) {
timerWatch = new Timer(new Duration(milliseconds: 1000), () {
new Generator().generate(config);
timerWatchCss = null;
timerWatch = null;
});
}
});

0 comments on commit 267f4f9

Please sign in to comment.