This commit is contained in:
eric
2026-03-29 03:49:29 -05:00
parent 22061fb3c8
commit 7cab3f27b8
8 changed files with 99 additions and 17 deletions

View File

@@ -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": [],

View File

@@ -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)