mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Fix: Add timeout to ADB and aScreencap screenshot
This commit is contained in:
parent
6614ec795a
commit
867d3d2bbd
@ -49,6 +49,7 @@ def recv_all(stream, chunk_size=4096) -> bytes:
|
||||
"""
|
||||
if isinstance(stream, _AdbStreamConnection):
|
||||
stream = stream.conn
|
||||
stream.settimeout(10)
|
||||
|
||||
try:
|
||||
fragments = []
|
||||
|
||||
Loading…
Reference in New Issue
Block a user