diff --git a/lib/src/main/java/tej/wifitoolslib/DeviceFinder.java b/lib/src/main/java/tej/wifitoolslib/DeviceFinder.java index b3b17ef..4852662 100644 --- a/lib/src/main/java/tej/wifitoolslib/DeviceFinder.java +++ b/lib/src/main/java/tej/wifitoolslib/DeviceFinder.java @@ -83,7 +83,7 @@ private void sendFinishedEvent(List deviceItems) { private void startPing() { if (!NetworkInfo.isWifiConnected(context)) { - isRunning = true; + isRunning = false; sendFailedEvent(WIFI_NOT_CONNECTED); return; }