Skip to content

Commit f888f35

Browse files
Fix issue where TermuxService was stopped and Termux notification canceled, if background tasks were still running but all sessions had been closed.
1 parent 24a5493 commit f888f35

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

app/src/main/java/com/termux/app/TermuxService.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -555,13 +555,7 @@ public void onTermuxSessionExited(final TermuxSession termuxSession) {
555555
mTermuxSessionClient.termuxSessionListNotifyUpdated();
556556
}
557557

558-
if (mTermuxSessions.isEmpty() && mWakeLock == null) {
559-
// Finish if there are no TermuxSessions left and the wake lock is not held, otherwise keep the service alive if
560-
// holding wake lock since there may be daemon processes (e.g. sshd) running.
561-
requestStopService();
562-
} else {
563-
updateNotification();
564-
}
558+
updateNotification();
565559
}
566560

567561

0 commit comments

Comments
 (0)