mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Only call refreshViews if the VM service is available (#5474)
Fixes https://github.com/flutter/flutter/issues/5468
This commit is contained in:
parent
a4ea12c470
commit
073f64de1a
@ -185,8 +185,10 @@ class RunAndStayResident extends ResidentRunner {
|
||||
|
||||
printStatus('Application running.');
|
||||
|
||||
await vmService.vm.refreshViews();
|
||||
printStatus('Connected to view \'${vmService.vm.mainView}\'.');
|
||||
if (vmService != null) {
|
||||
await vmService.vm.refreshViews();
|
||||
printStatus('Connected to view \'${vmService.vm.mainView}\'.');
|
||||
}
|
||||
|
||||
if (vmService != null && traceStartup) {
|
||||
printStatus('Downloading startup trace info...');
|
||||
|
Loading…
Reference in New Issue
Block a user