android: Cleaner shutdown still.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 31m38s

This commit is contained in:
2025-08-27 20:23:02 -04:00
parent be6e841d3d
commit 91fd515d39

View File

@@ -285,7 +285,6 @@ public class TildeFriendsActivity extends Activity {
} catch (InterruptedException e) { } catch (InterruptedException e) {
} }
} }
log_thread = null;
} }
}); });
log_thread.start(); log_thread.start();
@@ -336,9 +335,13 @@ public class TildeFriendsActivity extends Activity {
protected void onDestroy() protected void onDestroy()
{ {
try { try {
log_queue.put(null); if (log_queue != null) {
log_queue.put(null);
}
log_thread.join();
} catch (InterruptedException e) { } catch (InterruptedException e) {
} }
log_thread = null;
s_activity = null; s_activity = null;
super.onDestroy(); super.onDestroy();
} }