1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-09 18:39:04 +08:00

Merge pull request #1019 from hgjazhgj/dev

Fix: Add timeout to ADB and aScreencap screenshot
This commit is contained in:
LmeSzinc 2022-04-14 18:02:38 +08:00 committed by GitHub
commit 5a30ab1faa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 = []