Commit ab6df251 authored by Ben Konyi's avatar Ben Konyi

Fixed concurrent list modification in vmservice.dart

parent 87351bd9
......@@ -953,7 +953,7 @@ class VM extends ServiceObjectOwner {
if (!isFlutterEngine)
return;
_viewCache.clear();
for (Isolate isolate in isolates) {
for (Isolate isolate in isolates.toList()) {
await vmService.vm.invokeRpc('_flutter.listViews',
timeout: kLongRequestTimeout,
params: <String, dynamic> {'isolateId': isolate.id});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment