Index: pkg/analysis_server/lib/src/server/driver.dart |
diff --git a/pkg/analysis_server/lib/src/server/driver.dart b/pkg/analysis_server/lib/src/server/driver.dart |
index 698f63fe08428dc2209e068a16d9bf4000713df4..049037742b98d4a0a6709e0073ac8ce41a0268c5 100644 |
--- a/pkg/analysis_server/lib/src/server/driver.dart |
+++ b/pkg/analysis_server/lib/src/server/driver.dart |
@@ -428,11 +428,11 @@ class Driver implements ServerStarter { |
} |
_captureExceptions(service, () { |
- stdioServer.serveStdio().then((_) { |
+ stdioServer.serveStdio().then((_) async { |
if (serve_http) { |
httpServer.close(); |
} |
- service.shutdown(); |
+ await service.shutdown(); |
exit(0); |
}); |
}, |