Do not cancel the VmService's subscription to the isolate event stream in FlutterVmService.findExtensionIsolate (#153607)

The stream subscriptions in the device's VmService are used by other parts of FlutterVmService and other components throughout flutter_tools.  Components that listen to streams should not call VmService.streamCancel because that will interfere with other users who still want the events.

See https://github.com/flutter/flutter/issues/153049
See https://github.com/flutter/flutter/issues/153563
This commit is contained in:
Jason Simmons
2024-08-19 10:40:07 -07:00
committed by GitHub
parent bf5bcff0c2
commit 31c3d0927b
5 changed files with 1 additions and 81 deletions

View File

@@ -986,11 +986,6 @@ class FlutterVmService {
throw VmServiceDisappearedException();
} finally {
await isolateEvents.cancel();
try {
await service.streamCancel(vm_service.EventStreams.kIsolate);
} on vm_service.RPCError {
// It's ok for cleanup to fail, such as when the service disappears.
}
}
}