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() {
|
||||
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 @@ public class TraditionalT9 extends MainViewHandler {
|
|||
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
cleanUp();
|
||||
isDead = true;
|
||||
if (!isDead) {
|
||||
cleanUp();
|
||||
isDead = true;
|
||||
}
|
||||
super.onDestroy();
|
||||
Logger.d(LOG_TAG, "===> Shutdown completed");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue