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:
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…
x
Reference in New Issue
Block a user