diff options
| author | Anis B <[email protected]> | 2017-10-11 05:14:57 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-10-11 05:14:57 +0200 |
| commit | 192f57efefc7110b18a1a4d16135bdc7d4bd253a (patch) | |
| tree | 6d545743b2b774be65e76bc38505f7a14a6a6c11 | |
| parent | ran faq through a spelling and grammar checker (diff) | |
| download | discord.py-192f57efefc7110b18a1a4d16135bdc7d4bd253a.tar.xz discord.py-192f57efefc7110b18a1a4d16135bdc7d4bd253a.zip | |
Actually resume on opcode RECONNECT
| -rw-r--r-- | discord/client.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/discord/client.py b/discord/client.py index 0d6c3e36..4bb5d4eb 100644 --- a/discord/client.py +++ b/discord/client.py @@ -447,9 +447,8 @@ class Client: try: yield from self.ws.poll_event() except (ReconnectWebSocket, ResumeWebSocket) as e: - resume = type(e) is ResumeWebSocket log.info('Got ' + type(e).__name__) - self.ws = yield from DiscordWebSocket.from_client(self, resume=resume) + self.ws = yield from DiscordWebSocket.from_client(self, resume=True) except ConnectionClosed as e: yield from self.close() if e.code != 1000: |