| Index: runtime/bin/vmservice/running_isolate.dart
|
| diff --git a/runtime/bin/vmservice/running_isolate.dart b/runtime/bin/vmservice/running_isolate.dart
|
| index 2d4af13ae97c8b7cd1c16398af2ecf051447251a..13b358a1becc614515bd205c21179a4eb951fde3 100644
|
| --- a/runtime/bin/vmservice/running_isolate.dart
|
| +++ b/runtime/bin/vmservice/running_isolate.dart
|
| @@ -12,16 +12,16 @@ class RunningIsolate implements ServiceRequestRouter {
|
|
|
| Future sendMessage(List request) {
|
| final completer = new Completer.sync();
|
| - final receivePort = new ReceivePort();
|
| + final receivePort = new RawReceivePort();
|
| sendServiceMessage(sendPort, receivePort, request);
|
| - receivePort.receive((value, ignoreReplyTo) {
|
| + receivePort.handler = (value) {
|
| receivePort.close();
|
| if (value is Exception) {
|
| completer.completeError(value);
|
| } else {
|
| completer.complete(value);
|
| }
|
| - });
|
| + };
|
| return completer.future;
|
| }
|
|
|
|
|