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

Unified Diff: runtime/bin/vmservice/vmservice.dart

Issue 38703009: Update VM service to new isolate API (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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
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() {

Powered by Google App Engine
This is Rietveld 408576698