chore: sync current workspace changes
This commit is contained in:
@@ -388,4 +388,15 @@ def stop_gateway(gateway: Any) -> None:
|
||||
gateway._market_status_task.cancel()
|
||||
if gateway._watchlist_ingest_task:
|
||||
gateway._watchlist_ingest_task.cancel()
|
||||
# Close OpenClaw WebSocket connection
|
||||
if gateway._openclaw_ws:
|
||||
import asyncio
|
||||
try:
|
||||
loop = asyncio.get_event_loop()
|
||||
if loop.is_running():
|
||||
loop.create_task(gateway._openclaw_ws.disconnect())
|
||||
else:
|
||||
loop.run_until_complete(gateway._openclaw_ws.disconnect())
|
||||
except Exception:
|
||||
pass
|
||||
gateway._dashboard.stop()
|
||||
|
||||
Reference in New Issue
Block a user