Index: pkg/analysis_server/lib/src/analysis_server.dart |
diff --git a/pkg/analysis_server/lib/src/analysis_server.dart b/pkg/analysis_server/lib/src/analysis_server.dart |
index 1c5e683eb1240fac54b9ae076ee9ee7067311a0a..90fca909b11d5cacd3aeaf0c624dce3a4fcb97fa 100644 |
--- a/pkg/analysis_server/lib/src/analysis_server.dart |
+++ b/pkg/analysis_server/lib/src/analysis_server.dart |
@@ -136,8 +136,8 @@ class AnalysisServer { |
if (contextWorkQueue.isEmpty) { |
running = false; |
} else { |
- Timer.run(() { |
- performTask(); |
+ new Future(performTask).catchError((exception, stackTrace) { |
devoncarew
2014/02/18 17:15:21
Does performTask() throw? I think that's the only
Brian Wilkerson
2014/02/18 17:18:38
Not if it's working as expected, but an exception
|
+ AnalysisEngine.instance.logger.logError3(exception); |
}); |
} |
} |