mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-12-17 05:24:19 +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;
|
||||
try {
|
||||
msg = controlChannel.recv();
|
||||
} catch (ControlProtocolException e) {
|
||||
Ln.e("Control protocol error", e);
|
||||
return false;
|
||||
} catch (IOException e) {
|
||||
// this is expected on close
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user