mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-12-17 13:34:20 +01:00
Report control protocol errors
All IOExceptions were ignored to avoid an error on close, but protocol exceptions must be reported.
This commit is contained in:
@@ -259,6 +259,9 @@ public class Controller implements AsyncProcessor, VirtualDisplayListener {
|
|||||||
ControlMessage msg;
|
ControlMessage msg;
|
||||||
try {
|
try {
|
||||||
msg = controlChannel.recv();
|
msg = controlChannel.recv();
|
||||||
|
} catch (ControlProtocolException e) {
|
||||||
|
Ln.e("Control protocol error", e);
|
||||||
|
return false;
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
// this is expected on close
|
// this is expected on close
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user