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 7 months ago
parent 3c45625324
commit 9d5f53caa7

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

Loading…
Cancel
Save