1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-24 05:35:56 +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

View File

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