Skip to content

Commit

Permalink
Defensive check
Browse files Browse the repository at this point in the history
  • Loading branch information
fanchao committed May 21, 2024
1 parent fbc82d7 commit 27fcc66
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ public void startRecording() {
Log.i(TAG, "Running startRecording() + " + Thread.currentThread().getId());
try {
if (audioCodec != null) {
throw new AssertionError("We can only record once at a time.");
Log.e(TAG, "We can only record once at a time.");
return;
}

ParcelFileDescriptor fds[] = ParcelFileDescriptor.createPipe();
Expand Down

0 comments on commit 27fcc66

Please sign in to comment.