# HG changeset patch # User Paul Hunkin # Date 1280221327 -7200 # Node ID 191f4693d0c1c1c65ea2ddd65df1775fdf32d5da # Parent f2c2a33a1a387d7b75bfc4d76552738546b9b2d3 OK, /actually/ fixed the nativeQuit() crash this time diff -r f2c2a33a1a38 -r 191f4693d0c1 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