diff --git a/engine/src/flutter/runtime/service_protocol.cc b/engine/src/flutter/runtime/service_protocol.cc index f2960d624d..3994b78ef3 100644 --- a/engine/src/flutter/runtime/service_protocol.cc +++ b/engine/src/flutter/runtime/service_protocol.cc @@ -63,7 +63,7 @@ void ServiceProtocol::RemoveHandler(Handler* handler) { void ServiceProtocol::ToggleHooks(bool set) { for (const auto& endpoint : endpoints_) { - Dart_RegisterRootServiceRequestCallback( + Dart_RegisterIsolateServiceRequestCallback( endpoint.data(), // method &ServiceProtocol::HandleMessage, // callback set ? this : nullptr // user data