mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-09-26 11:18:34 +00:00
Avoid calling wait(0)
Calling wait(0) results in waiting without a timeout, which is unintended. Refs #6009 comment <https://github.com/Genymobile/scrcpy/pull/6009#issuecomment-2935930294>
This commit is contained in:
parent
70bfa2cf39
commit
52f5d08d1f
1 changed files with 3 additions and 1 deletions
|
@ -699,7 +699,9 @@ public class Controller implements AsyncProcessor, VirtualDisplayListener {
|
|||
if (timeout < 0) {
|
||||
return null;
|
||||
}
|
||||
if (timeout > 0) {
|
||||
displayDataAvailable.wait(timeout);
|
||||
}
|
||||
data = displayData.get();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue