b419eef55e
A device disconnection (when the adb connection is closed) makes the read() on the "receiver" socket fail. Since commit 063a8339ed27b94a8fe1e53a284507eb2d044e15, this is reported as an error. As a consequence, scrcpy fails with: ERROR: Controller error instead of: WARN: Device disconnected To fix the issue, report a device disconnection in that case. PR #5044 <https://github.com/Genymobile/scrcpy/pull/5044>