Skip to content

Commit

Permalink
对当前子线程sleep 200ms
Browse files Browse the repository at this point in the history
Change-Id: Ic11291bee764127081f86f917bd4a2e3c72759a0
  • Loading branch information
SundoggyNew committed Jan 10, 2024
1 parent d2e6bd3 commit 1eaa0c9
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,12 @@ public void stop() {
private void stopInternal() {
recorderState = false;
Log.e(TAG, "turn recorderState : " + recorderState);
try {
Thread.sleep(200);
Log.e(TAG, "Thread.sleep 200 turn recorderState : " + recorderState);
} catch (InterruptedException e) {
e.printStackTrace();
}
if (audioRecord != null) {
audioRecord.stop();
}
Expand Down

0 comments on commit 1eaa0c9

Please sign in to comment.