diff --git a/gui/packages/ubuntupro/lib/pages/startup/agent_monitor.dart b/gui/packages/ubuntupro/lib/pages/startup/agent_monitor.dart index 962557e6f..7d2b2ee68 100644 --- a/gui/packages/ubuntupro/lib/pages/startup/agent_monitor.dart +++ b/gui/packages/ubuntupro/lib/pages/startup/agent_monitor.dart @@ -161,7 +161,15 @@ class AgentStartupMonitor { /// Thus, we delete the existing `addr` file and retry launching the agent. Future reset() async { if (_addrFilePath != null) { - await File(_addrFilePath!).delete(); + try { + await File(_addrFilePath!).delete(); + } on PathNotFoundException { + // TODO: Log + // ignore: avoid_print + print( + 'Port file expected but not found. Likely a race with the agent at this point, not an issue.', + ); + } } } }