From f7823d58dadfa1734eec02c44dc8bbee49a3f751 Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Wed, 24 Feb 2021 14:06:02 -0800 Subject: [PATCH] [flutter_tools] fix comment in resident web runner (#76724) --- .../flutter_tools/lib/src/isolated/resident_web_runner.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/flutter_tools/lib/src/isolated/resident_web_runner.dart b/packages/flutter_tools/lib/src/isolated/resident_web_runner.dart index 9dcc455c3a8..d2e10896923 100644 --- a/packages/flutter_tools/lib/src/isolated/resident_web_runner.dart +++ b/packages/flutter_tools/lib/src/isolated/resident_web_runner.dart @@ -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 {