Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
OK, /actually/ fixed the nativeQuit() crash this time
Browse files Browse the repository at this point in the history
  • Loading branch information
bieh committed Jul 27, 2010
1 parent b788f09 commit 2fabc2d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions android/testproject/src/org/libsdl/android/SDLActivity.java
Expand Up @@ -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
Expand Down

0 comments on commit 2fabc2d

Please sign in to comment.