Index: pkg/analyzer/lib/instrumentation/file_instrumentation.dart |
diff --git a/pkg/analyzer/lib/instrumentation/file_instrumentation.dart b/pkg/analyzer/lib/instrumentation/file_instrumentation.dart |
index ba23b68f3b5dfe502e462f7d0410305daeac054d..72691156d66f7d7248305e3aa5d17c5f9420ca1f 100644 |
--- a/pkg/analyzer/lib/instrumentation/file_instrumentation.dart |
+++ b/pkg/analyzer/lib/instrumentation/file_instrumentation.dart |
@@ -4,6 +4,7 @@ |
library file_instrumentation; |
+import 'dart:async'; |
import 'dart:io'; |
import 'package:analyzer/instrumentation/instrumentation.dart'; |
@@ -30,8 +31,8 @@ class FileInstrumentationServer implements InstrumentationServer { |
} |
@override |
- void shutdown() { |
- _sink.close(); |
+ Future shutdown() async { |
+ await _sink.close(); |
_sink = null; |
} |
} |