Stop capture on any RAW audio error

The server was stopped only if an IOException occurred during RAW audio
capture, but it did not catch RuntimeExceptions.
This commit is contained in:
Romain Vimont 2023-11-11 11:04:21 +01:00
parent 3c45625324
commit 9d5f53caa7

View File

@ -62,8 +62,8 @@ public final class AudioRawRecorder implements AsyncProcessor {
record();
} catch (AudioCaptureForegroundException e) {
// Do not print stack trace, a user-friendly error-message has already been logged
} catch (IOException e) {
Ln.e("Audio recording error", e);
} catch (Throwable t) {
Ln.e("Audio recording error", t);
fatalError = true;
} finally {
Ln.d("Audio recorder stopped");