Commit e0c98826 authored by Paul Hunkin's avatar Paul Hunkin

OK, /actually/ fixed the nativeQuit() crash this time

parent 088b7581
...@@ -153,6 +153,13 @@ class SDLSurface extends SurfaceView implements SurfaceHolder.Callback, ...@@ -153,6 +153,13 @@ class SDLSurface extends SurfaceView implements SurfaceHolder.Callback,
Log.v("SDL","Surface destroyed"); Log.v("SDL","Surface destroyed");
SDLActivity.nativeQuit(); 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 //Called when the surface is resized
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment