Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

fix: dont use resume_url on invalid session #622

Merged
merged 1 commit into from
Sep 4, 2022
Merged
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
2 changes: 1 addition & 1 deletion naff/api/gateway/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ async def dispatch_opcode(self, data, op: OPCODE) -> None:

case OPCODE.INVALIDATE_SESSION:
logger.warning("Gateway has invalidated session! Reconnecting...")
return await self.reconnect(resume=data, url=self.ws_resume_url if data else None)
return await self.reconnect()

case _:
return logger.debug(f"Unhandled OPCODE: {op} = {OPCODE(op).name}")
Expand Down