Index: runtime/bin/vmservice/vmservice.dart |
diff --git a/runtime/bin/vmservice/vmservice.dart b/runtime/bin/vmservice/vmservice.dart |
index 681eff1e132901d06afa3e7bdc362b3026325759..83c21685dbf11a9e7237d7ae988c62392f5801be 100644 |
--- a/runtime/bin/vmservice/vmservice.dart |
+++ b/runtime/bin/vmservice/vmservice.dart |
@@ -31,14 +31,14 @@ class VMService { |
} |
} |
- void messageHandler(message, SendPort replyTo) { |
+ void messageHandler(message) { |
if (message is List && message.length == 3) { |
controlMessageHandler(message[0], message[1], message[2]); |
} |
} |
VMService._internal() { |
- port.receive(messageHandler); |
+ port.listen(messageHandler); |
} |
factory VMService() { |