Index: runtime/vm/service_isolate.cc |
diff --git a/runtime/vm/service_isolate.cc b/runtime/vm/service_isolate.cc |
index 312667869ff20c14891cfb4979a79e37e5b6b83e..3779905093b7a5a401698fb608fec912ad4e4669 100644 |
--- a/runtime/vm/service_isolate.cc |
+++ b/runtime/vm/service_isolate.cc |
@@ -304,7 +304,8 @@ class ServiceIsolateNatives : public AllStatic { |
Zone* zone = stack_zone.GetZone(); // Used by GET_NON_NULL_NATIVE_ARGUMENT. |
HANDLESCOPE(isolate); |
GET_NON_NULL_NATIVE_ARGUMENT(String, stream_id, arguments->NativeArgAt(0)); |
- Service::ListenStream(stream_id.ToCString()); |
+ bool result = Service::ListenStream(stream_id.ToCString()); |
+ arguments->SetReturn(Bool::Get(result)); |
} |
static void CancelStream(Dart_NativeArguments args) { |