forked from cory/tildefriends
		
	android: Cleaner shutdown still.
This commit is contained in:
		@@ -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 {
 | 
				
			||||||
 | 
								if (log_queue != null) {
 | 
				
			||||||
					log_queue.put(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();
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user