Skip to content

Commit

Permalink
Libsu preclosure of shell
Browse files Browse the repository at this point in the history
  • Loading branch information
ukanth committed Aug 14, 2023
1 parent df332fb commit d1aa4af
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions app/src/main/java/dev/ukanth/ufirewall/service/LogService.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit d1aa4af

Please sign in to comment.