android: Cleaner shutdown still.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 31m38s
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 31m38s
This commit is contained in:
@@ -285,7 +285,6 @@ public class TildeFriendsActivity extends Activity {
|
||||
} catch (InterruptedException e) {
|
||||
}
|
||||
}
|
||||
log_thread = null;
|
||||
}
|
||||
});
|
||||
log_thread.start();
|
||||
@@ -336,9 +335,13 @@ public class TildeFriendsActivity extends Activity {
|
||||
protected void onDestroy()
|
||||
{
|
||||
try {
|
||||
if (log_queue != null) {
|
||||
log_queue.put(null);
|
||||
}
|
||||
log_thread.join();
|
||||
} catch (InterruptedException e) {
|
||||
}
|
||||
log_thread = null;
|
||||
s_activity = null;
|
||||
super.onDestroy();
|
||||
}
|
||||
|
Reference in New Issue
Block a user