From 27fcc66e7f2983fb5196f7046c1c6edd72ea4736 Mon Sep 17 00:00:00 2001 From: fanchao Date: Tue, 21 May 2024 14:55:10 +1000 Subject: [PATCH] Defensive check --- .../java/org/thoughtcrime/securesms/audio/AudioRecorder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/audio/AudioRecorder.java b/app/src/main/java/org/thoughtcrime/securesms/audio/AudioRecorder.java index 35cbf16b63..835777fdcf 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/audio/AudioRecorder.java +++ b/app/src/main/java/org/thoughtcrime/securesms/audio/AudioRecorder.java @@ -45,7 +45,8 @@ public class AudioRecorder { 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();