Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

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

  • Loading branch information
bieh committed Jul 27, 2010
1 parent b788f09 commit 2fabc2d7bc6ef651b3fc57b78569c7bdce815186
Showing with 7 additions and 0 deletions.
  1. +7 −0 android/testproject/src/org/libsdl/android/SDLActivity.java
@@ -153,6 +153,13 @@ public void surfaceDestroyed(SurfaceHolder holder) {
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

0 comments on commit 2fabc2d

Please sign in to comment.