mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-04-21 01:33:36 +00: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:
parent
3f06378164
commit
52658eb2d6
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue