mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-04 23:17:20 +08:00
fix(discord): preserve cleanup during startup stop (#6426)
This commit is contained in:
@@ -264,11 +264,6 @@ class Discord:
|
||||
).result(timeout=10)
|
||||
except Exception as err:
|
||||
logger.error(f"关闭 Discord Bot 失败:{err}")
|
||||
elif not loop.is_closed():
|
||||
try:
|
||||
loop.call_soon_threadsafe(loop.stop)
|
||||
except RuntimeError:
|
||||
pass
|
||||
self._ready_event.clear()
|
||||
thread.join(timeout=5)
|
||||
if thread.is_alive():
|
||||
|
||||
Reference in New Issue
Block a user