mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-13 15:09:20 +08:00
Fix: Set timeout on socket objects
This commit is contained in:
@@ -54,6 +54,8 @@ def recv_all(stream, chunk_size=4096, recv_interval=0.000) -> bytes:
|
|||||||
if isinstance(stream, _AdbStreamConnection):
|
if isinstance(stream, _AdbStreamConnection):
|
||||||
stream = stream.conn
|
stream = stream.conn
|
||||||
stream.settimeout(10)
|
stream.settimeout(10)
|
||||||
|
else:
|
||||||
|
stream.settimeout(10)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
fragments = []
|
fragments = []
|
||||||
|
|||||||
Reference in New Issue
Block a user