1
0
mirror of https://github.com/sui-feng-cb/AzurLaneAutoScript1.git synced 2026-06-16 23:51:42 +08:00

Fix: Set timeout on socket objects

This commit is contained in:
LmeSzinc
2023-01-03 02:36:22 +08:00
parent 1c0425aa7b
commit b727752e45

View File

@@ -54,6 +54,8 @@ def recv_all(stream, chunk_size=4096, recv_interval=0.000) -> bytes:
if isinstance(stream, _AdbStreamConnection):
stream = stream.conn
stream.settimeout(10)
else:
stream.settimeout(10)
try:
fragments = []