diff --git a/discord/ext/ipc/client.py b/discord/ext/ipc/client.py index 32c74ec..ecfed87 100644 --- a/discord/ext/ipc/client.py +++ b/discord/ext/ipc/client.py @@ -147,9 +147,9 @@ async def request(self, endpoint: str, **kwargs): log.error( "WebSocket connection unexpectedly closed. IPC Server is unreachable." ) - return { - "error": "IPC Server Unreachable, restart client process.", - "code": 500, - } + await self.session.close() + await self.init_sock() + + return await self.request(endpoint, **kwargs) return recv.json()