wait for worker thread to finish

This commit is contained in:
Ahmet Inan 2014-12-12 17:32:43 +01:00
parent 60b8c48d9b
commit 8d73fe002c

View file

@ -221,6 +221,10 @@ public class ImageView extends SurfaceView implements SurfaceHolder.Callback {
synchronized (thread) {
quitThread = true;
}
try {
thread.join();
} catch (InterruptedException ignore) {
}
audio.stop();
audio.release();
}