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:
@@ -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.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user