OK, /actually/ fixed the nativeQuit() crash this time
authorPaul Hunkin <paul@bieh.net>
Tue, 27 Jul 2010 11:02:07 +0200
changeset 4717 191f4693d0c1
parent 4716 f2c2a33a1a38
child 4718 79aa6c61f33b
OK, /actually/ fixed the nativeQuit() crash this time
android/testproject/src/org/libsdl/android/SDLActivity.java
--- a/android/testproject/src/org/libsdl/android/SDLActivity.java	Tue Jul 27 10:49:11 2010 +0200
+++ b/android/testproject/src/org/libsdl/android/SDLActivity.java	Tue Jul 27 11:02:07 2010 +0200
@@ -153,6 +153,13 @@
         Log.v("SDL","Surface destroyed");
         
         SDLActivity.nativeQuit();
+
+        //Now wait for the SDL thread to quit
+        try{
+            mSDLThread.wait();
+        }catch(Exception e){
+            Log.v("SDL","Problem stopping thread: " + e);
+        }
     }
 
     //Called when the surface is resized