Wi-Fi: Correct loop in connectToNetwork function

This commit is contained in:
Nicolas Mailloux 2021-07-14 18:27:39 -04:00
parent e73c8c371e
commit 4c714d4abd

View file

@ -464,10 +464,12 @@ namespace {
if(QFile::exists("/run/wifi_connected_successfully")) { if(QFile::exists("/run/wifi_connected_successfully")) {
if(checkconfig("/run/wifi_connected_successfully") == true) { if(checkconfig("/run/wifi_connected_successfully") == true) {
QFile::remove("/run/wifi_connected_successfully"); QFile::remove("/run/wifi_connected_successfully");
connectionSuccessful = 1;
return true; return true;
} }
else { else {
QFile::remove("/run/wifi_connected_successfully"); QFile::remove("/run/wifi_connected_successfully");
connectionSuccessful = 0;
return false; return false;
} }
} }