Properly terminate threads when the game activity exits.

This commit is contained in:
Cameron Gutman
2013-11-10 01:30:55 -05:00
parent 61ae83337c
commit 0a445b9add
6 changed files with 228 additions and 103 deletions
+6 -2
View File
@@ -64,9 +64,13 @@ public class Game extends Activity implements OnGenericMotionListener, OnTouchLi
@Override
public void onPause() {
finish();
super.onPause();
System.exit(0);
}
public void onDestroy() {
conn.stop();
super.onDestroy();
}
@Override