8th attempt to fix the priviliged options problem: prevented a double cleanup on exit
This commit is contained in:
parent
3c9972e70e
commit
00058938cc
1 changed files with 5 additions and 3 deletions
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue