's'
This commit is contained in:
@@ -78,7 +78,10 @@ async def hub_dashboard() -> dict[str, Any]:
|
||||
else:
|
||||
devices = []
|
||||
stack = stack_summary()
|
||||
probes = await stack_stream_probes()
|
||||
try:
|
||||
probes = await stack_stream_probes()
|
||||
except Exception:
|
||||
probes = {"srs": {}, "neko": {}, "error": "probe_failed"}
|
||||
|
||||
live_status: dict[str, Any] = {
|
||||
"processes": [],
|
||||
|
||||
@@ -147,8 +147,8 @@ async def open_scrcpy_h264_stream(
|
||||
serial: str,
|
||||
*,
|
||||
max_size: int = 1920,
|
||||
connect_attempts: int = 12,
|
||||
connect_delay: float = 0.22,
|
||||
connect_attempts: int = 22,
|
||||
connect_delay: float = 0.28,
|
||||
) -> tuple[int, str, asyncio.StreamReader, asyncio.StreamWriter]:
|
||||
"""建立 forward + 启动 server,并返回 (local_port, scid_hex, reader, writer)。"""
|
||||
_validate_serial(serial)
|
||||
|
||||
Reference in New Issue
Block a user