perf: reduce poll timeout to 1s and wait to 50ms for faster button response

This commit is contained in:
2026-07-15 19:20:52 +08:00
parent c26d8aa294
commit 5ca739456d
2 changed files with 2 additions and 2 deletions

View File

@@ -110,7 +110,7 @@ def _tg_poller(cfg):
except Exception as e:
logger.error(f"TG 轮询错误: {e}", exc_info=True)
if _running:
_shutdown_event.wait(0.1)
_shutdown_event.wait(0.05)
def _tg_sender(cfg):