Skip to content

Commit

Permalink
8th attempt to fix the priviliged options problem: prevented a double…
Browse files Browse the repository at this point in the history
… cleanup on exit
sspanak committed Jan 17, 2025
1 parent 3c9972e commit 0005893
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -208,7 +208,7 @@ protected void startZombieCheck() {

protected void onZombie() {
if (isDead) {
Logger.w(LOG_TAG, "===> Already dead. Nothing to do.");
Logger.w(LOG_TAG, "===> Already dead. Cannot kill self.");
return;
}

@@ -232,8 +232,10 @@ protected void cleanUp() {

@Override
public void onDestroy() {
cleanUp();
isDead = true;
if (!isDead) {
cleanUp();
isDead = true;
}
super.onDestroy();
Logger.d(LOG_TAG, "===> Shutdown completed");
}

0 comments on commit 0005893

Please sign in to comment.