Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Unified Diff: sdk/lib/vmservice/message.dart

Issue 2703133004: Close receive port on error to avoid hanging forever (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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': '',
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698