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