mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-12-17 21:44:20 +01:00
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:
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user