diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/wifi/qwifielinux.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/wifi/qwifielinux.cpp b/src/wifi/qwifielinux.cpp index 7584335..e7dabb3 100644 --- a/src/wifi/qwifielinux.cpp +++ b/src/wifi/qwifielinux.cpp @@ -117,14 +117,15 @@ int q_wifi_stop_supplicant() return -1; } - QByteArray path = controlInterfacePath(); - if (path.isEmpty()) - return -1; - - QFile::remove(QLatin1String(path + "/" + ifc)); QFile::remove(pidFile); } + QByteArray path = controlInterfacePath(); + if (path.isEmpty()) + return -1; + + QFile::remove(QLatin1String(path + "/" + ifc)); + return 0; } |