Skip to content

Commit db2ca99

Browse files
tctrdanoli3
authored andcommitted
ofAndroidSoundStream : need to test if the thread is defined before trying doing smthg with it when the app stops
(cherry picked from commit b31be3f)
1 parent 0dc46b5 commit db2ca99

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

addons/ofxAndroid/Java/cc/openframeworks/OFAndroidSoundStream.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,9 @@ public void appStop(){
130130
}
131131

132132
try {
133-
thread.join();
133+
if (thread!=null) {
134+
thread.join();
135+
}
134136
} catch (InterruptedException e) {
135137
Log.e("OF", "error finishing audio thread ", e);
136138
}

0 commit comments

Comments
 (0)