mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 01:07:47 +00:00
Defensive check
This commit is contained in:
parent
fbc82d7831
commit
27fcc66e7f
@ -45,7 +45,8 @@ public class AudioRecorder {
|
|||||||
Log.i(TAG, "Running startRecording() + " + Thread.currentThread().getId());
|
Log.i(TAG, "Running startRecording() + " + Thread.currentThread().getId());
|
||||||
try {
|
try {
|
||||||
if (audioCodec != null) {
|
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();
|
ParcelFileDescriptor fds[] = ParcelFileDescriptor.createPipe();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user