mirror of
https://github.com/xdsopl/robot36.git
synced 2026-04-05 14:25:25 +00:00
wait for worker thread to finish
This commit is contained in:
parent
60b8c48d9b
commit
8d73fe002c
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue