mirror of
https://github.com/xdsopl/robot36.git
synced 2025-12-06 07:12:07 +01:00
wait for worker thread to finish
This commit is contained in:
parent
60b8c48d9b
commit
8d73fe002c
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue