Index: sdk/lib/vmservice/message.dart |
diff --git a/sdk/lib/vmservice/message.dart b/sdk/lib/vmservice/message.dart |
index 0c021715a3f2ec1d376a9e049f55d160f964c2ee..cbce8c2c11831885b5a36de9f29c5a512c2ab311 100644 |
--- a/sdk/lib/vmservice/message.dart |
+++ b/sdk/lib/vmservice/message.dart |
@@ -109,6 +109,7 @@ class Message { |
..[4] = keys |
..[5] = values; |
if (!sendIsolateServiceMessage(sendPort, request)) { |
+ receivePort.close(); |
_completer.complete(JSON.encode({ |
'type': 'ServiceError', |
'id': '', |