1
0
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:
hgjazhgj
2022-04-14 11:12:08 +08:00
parent 6614ec795a
commit 867d3d2bbd

View File

@@ -49,6 +49,7 @@ def recv_all(stream, chunk_size=4096) -> bytes:
"""
if isinstance(stream, _AdbStreamConnection):
stream = stream.conn
stream.settimeout(10)
try:
fragments = []