Skip to content

Commit 88d4219

Browse files
Wifi: NetworkManager: remove connection profile it initial connection attemp fails
1 parent 65a8eb6 commit 88d4219

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/services/wifi/wifi_handlers/networkmanager/networkmanager.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ async def wait_for_connection(timeout: int = 30) -> bool:
249249
# If hotspot was running, restart it
250250
if not await wait_for_connection():
251251
logger.error(f"Connection timeout for {credentials.ssid}")
252+
await self.remove_network(credentials.ssid)
252253
raise TimeoutError(f"Failed to connect to {credentials.ssid} within 30 seconds")
253254

254255
if self._settings_manager.settings.hotspot_enabled:

0 commit comments

Comments
 (0)