mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-23 09:48:01 +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):
|
if isinstance(stream, _AdbStreamConnection):
|
||||||
stream = stream.conn
|
stream = stream.conn
|
||||||
|
stream.settimeout(10)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
fragments = []
|
fragments = []
|
||||||
|
|||||||
Reference in New Issue
Block a user