Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions gateway/platforms/qqbot/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,13 @@ def enforces_own_access_policy(self) -> bool:
# Connection lifecycle
# ------------------------------------------------------------------

async def connect(self) -> bool:
"""Authenticate, obtain gateway URL, and open the WebSocket."""
async def connect(self, *, is_reconnect: bool = False) -> bool:
"""Authenticate, obtain gateway URL, and open the WebSocket.

Args:
is_reconnect: True when the gateway reconnects after a
transient failure; False on cold boot.
"""
if not AIOHTTP_AVAILABLE:
message = "QQ startup failed: aiohttp not installed"
self._set_fatal_error("qq_missing_dependency", message, retryable=True)
Expand Down