Chromium Code Reviews| Index: runtime/bin/vmservice/vmservice.dart |
| diff --git a/runtime/bin/vmservice/vmservice.dart b/runtime/bin/vmservice/vmservice.dart |
| index 681eff1e132901d06afa3e7bdc362b3026325759..c70b3e7027a732e1703d52a7ce97b34f2150fe28 100644 |
| --- a/runtime/bin/vmservice/vmservice.dart |
| +++ b/runtime/bin/vmservice/vmservice.dart |
| @@ -19,6 +19,8 @@ part 'service_request_router.dart'; |
| class VMService { |
| static VMService _instance; |
| RunningIsolates runningIsolates = new RunningIsolates(); |
| + ReceivePort _receivePort; |
|
floitsch
2013/10/24 15:28:30
maybe:
final ReceivePort receivePort = new Receive
Cutch
2013/10/25 01:21:57
Done.
|
| + ReceivePort get receivePort => _receivePort; |
| void controlMessageHandler(int code, SendPort sp, String name) { |
| switch (code) { |
| @@ -38,7 +40,9 @@ class VMService { |
| } |
| VMService._internal() { |
| - port.receive(messageHandler); |
| + port.close(); |
|
Ivan Posva
2013/10/25 00:30:27
If you do not ever touch the default port, you sho
Cutch
2013/10/25 01:21:57
Removed.
|
| + _receivePort = new ReceivePort(); |
| + _receivePort.receive(messageHandler); |
| } |
| factory VMService() { |