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.
flac.3
Romain Vimont 6 months ago
parent 3c45625324
commit 9d5f53caa7

@ -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");

Loading…
Cancel
Save