[flutter_tools] fix comment in resident web runner (#76724)

This commit is contained in:
Jonah Williams
2021-02-24 14:06:02 -08:00
committed by GitHub
parent a30ebf67e5
commit f7823d58da

View File

@@ -812,7 +812,9 @@ class _ResidentWebRunner extends ResidentWebRunner {
setHttpAddress(_httpUriFromWebsocketUri(websocketUri), device.vmService);
setWsAddress(websocketUri, device.vmService);
// Always run main after connecting because start paused doesn't work yet.
// Run main immediately if the app is not started paused or if there
// is no debugger attached. Otherwise, runMain when a resume event
// is received.
if (!debuggingOptions.startPaused || !supportsServiceProtocol) {
_connectionResult.appConnection.runMain();
} else {