mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-04-20 19:45:00 +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() {
|
||||
if (buffer.remaining() != BACK_OR_SCREEN_ON_PAYLOAD_LENGTH) {
|
||||
if (buffer.remaining() < BACK_OR_SCREEN_ON_PAYLOAD_LENGTH) {
|
||||
return null;
|
||||
}
|
||||
boolean screenOnOnly = buffer.get() != 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue