diff --git a/app/src/main/java/dev/ukanth/ufirewall/service/LogService.java b/app/src/main/java/dev/ukanth/ufirewall/service/LogService.java index 8c3274e7..eb9a1566 100644 --- a/app/src/main/java/dev/ukanth/ufirewall/service/LogService.java +++ b/app/src/main/java/dev/ukanth/ufirewall/service/LogService.java @@ -189,15 +189,7 @@ private void createNotification() { } private void initiateLogWatcher(String logCommand) { - // Stop existing log service - if (logWatcherShell != null) { - try { - logWatcherShell.close(); - } catch (Exception e) { - Log.e(TAG, "Failed closing previous log watcher shell and process - further logging will not function"); - } - logWatcherShell = null; - } + // Clear/remove existing tasks if(executorService != null) { executorService.shutdownNow();