Wi-Fi: Fix the non stop scanning introduced by a recent PR.

This commit is contained in:
Lemmy
2025-12-24 12:38:56 -05:00
parent 6ff3debf15
commit a61df00a10
+6 -6
View File
@@ -643,12 +643,12 @@ Singleton {
onStreamFinished: {
if (text && text.trim()) {
Logger.w("Network", "Profile check stderr:", text.trim());
}
// Fail safe
if (root.scanning) {
root.scanning = false;
delayedScanTimer.interval = 5000;
delayedScanTimer.restart();
// Fail safe - only restart scan on actual error
if (root.scanning) {
root.scanning = false;
delayedScanTimer.interval = 5000;
delayedScanTimer.restart();
}
}
}
}