Mercurial > sdl-ios-xcode
changeset 4717:191f4693d0c1
OK, /actually/ fixed the nativeQuit() crash this time
author | Paul Hunkin <paul@bieh.net> |
---|---|
date | Tue, 27 Jul 2010 11:02:07 +0200 |
parents | f2c2a33a1a38 |
children | 79aa6c61f33b |
files | android/testproject/src/org/libsdl/android/SDLActivity.java |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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