| 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 4e79eba44d6d2b70ec47a9a7c477481b4917870e..dac925c66f5154e1b565eb0dd20f626fc30dd596 100644
|
| --- a/pkg/analysis_server/lib/src/analysis_server.dart
|
| +++ b/pkg/analysis_server/lib/src/analysis_server.dart
|
| @@ -820,8 +820,12 @@ class AnalysisServer {
|
| index.clear();
|
| index.stop();
|
| }
|
| - // Defer closing the channel so that the shutdown response can be sent.
|
| - new Future(channel.close);
|
| + // Defer closing the channel and shutting down the instrumentation server so
|
| + // that the shutdown response can be sent and logged.
|
| + new Future(() {
|
| + channel.close();
|
| + instrumentationServer.shutdown();
|
| + });
|
| }
|
|
|
| /**
|
|
|