mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-03 14:49:29 +00:00
Fixed bug with remaining data in buffer after BACK_OR_SCREEN_ON
command.
This commit is contained in:
parent
275b0acbbe
commit
b42339ed03
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ public class ControlMessageReader {
|
||||||
}
|
}
|
||||||
|
|
||||||
private ControlMessage parseBackOrScreenOn() {
|
private ControlMessage parseBackOrScreenOn() {
|
||||||
if (buffer.remaining() != BACK_OR_SCREEN_ON_PAYLOAD_LENGTH) {
|
if (buffer.remaining() < BACK_OR_SCREEN_ON_PAYLOAD_LENGTH) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
boolean screenOnOnly = buffer.get() != 0;
|
boolean screenOnOnly = buffer.get() != 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue