mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-04-20 03:25:03 +00:00
Do not log EPIPE on close for raw audio
Handle EPIPE the same way in AudioRawRecorder as in AudioEncoder. This prevents useless errors on close.
This commit is contained in:
parent
420d3a40dd
commit
4eb33054cd
1 changed files with 5 additions and 0 deletions
|
@ -51,6 +51,11 @@ public final class AudioRawRecorder implements AsyncProcessor {
|
|||
|
||||
streamer.writePacket(buffer, bufferInfo);
|
||||
}
|
||||
} catch (IOException e) {
|
||||
// Broken pipe is expected on close, because the socket is closed by the client
|
||||
if (!IO.isBrokenPipe(e)) {
|
||||
Ln.e("Audio capture error", e);
|
||||
}
|
||||
} finally {
|
||||
capture.stop();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue