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:
Romain Vimont
2025-12-13 22:22:21 +01:00
parent 70ab117904
commit 0a81dd52ea

View File

@@ -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;