The only downloader you need. 下载器的集大成者。
TypeScript asyncasynciobittorentbtcross-platformdownload-managerdownloaderfluent-designftphttp3magnetpyqtpyside6pythonqtquicreactsoftwarestreaming
fix(platform): 修复 Windows 上 eD2k 引擎启动超时 #938
XiaoYouChR29dd18bad405
diff --git a/app/platform/hidden_subprocess.py b/app/platform/hidden_subprocess.pyindex 8a04881f..a74cb8b6 100644--- a/app/platform/hidden_subprocess.py+++ b/app/platform/hidden_subprocess.py@@ -38,18 +38,15 @@ class _StdinWriter:def __init__(self, pipe: io.BufferedWriter):self._pipe = pipe+ # asyncio's StreamWriter hands data to the pipe on write(), so callers+ # that never drain() must not be left with it stuck in Popen's buffer.def write(self, data: bytes) -> None:self._pipe.write(data)-- async def drain(self) -> None:self._pipe.flush()def close(self) -> None:self._pipe.close()- async def wait_closed(self) -> None:- pass-class _HiddenProcess:def __init__(self, proc: subprocess.Popen, limit: int):