Skip to content

Commit

Permalink
stopRecording: ignore ISE from AudioRecord.stop()
Browse files Browse the repository at this point in the history
  • Loading branch information
ge0rg committed May 11, 2017
1 parent 49c3c58 commit 4df3e4a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/com/jazzido/PacketDroid/AudioBufferProcessor.java
Expand Up @@ -94,7 +94,12 @@ public void startRecording() {
}

public void stopRecording() {
audioIn.close();
try {
audioIn.close();
} catch (IllegalStateException e) {
// "IllegalStateException: stop() called on an uninitialized AudioRecord."
// ignore this ;)
}
queue.clear();
}

Expand Down

0 comments on commit 4df3e4a

Please sign in to comment.