From a5b28fe4750cf81a2a2224768e81f9ee051a44d5 Mon Sep 17 00:00:00 2001 From: Gatis Paeglis Date: Mon, 13 Apr 2015 18:59:58 +0200 Subject: Fix regression introduced by b47a30f Change-Id: I4fd63ca0c47adfbb772ba0b8915c6bacef8c513c Reviewed-by: Laszlo Agocs --- src/wifi/qwifielinux.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/wifi') 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; } -- cgit v1.2.3