1
0
Fork 0

8th attempt to fix the priviliged options problem: prevented a double cleanup on exit

This commit is contained in:
sspanak 2025-01-17 18:26:18 +02:00
parent 3c9972e70e
commit 00058938cc

View file

@ -208,7 +208,7 @@ public class TraditionalT9 extends MainViewHandler {
protected void onZombie() { protected void onZombie() {
if (isDead) { if (isDead) {
Logger.w(LOG_TAG, "===> Already dead. Nothing to do."); Logger.w(LOG_TAG, "===> Already dead. Cannot kill self.");
return; return;
} }
@ -232,8 +232,10 @@ public class TraditionalT9 extends MainViewHandler {
@Override @Override
public void onDestroy() { public void onDestroy() {
cleanUp(); if (!isDead) {
isDead = true; cleanUp();
isDead = true;
}
super.onDestroy(); super.onDestroy();
Logger.d(LOG_TAG, "===> Shutdown completed"); Logger.d(LOG_TAG, "===> Shutdown completed");
} }