diff options
| author | Rapptz <[email protected]> | 2015-12-13 02:04:21 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2015-12-13 02:13:09 -0500 |
| commit | e39ba00dcf11e4008fbe6ef4eb978ff94b475c92 (patch) | |
| tree | 38fed102c9f3e90d76fe4d6f0c75cb24f481dd05 | |
| parent | Add discord.utils.get helper. (diff) | |
| download | discord.py-e39ba00dcf11e4008fbe6ef4eb978ff94b475c92.tar.xz discord.py-e39ba00dcf11e4008fbe6ef4eb978ff94b475c92.zip | |
Client.logout now properly cleans up the response.
| -rw-r--r-- | discord/client.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/discord/client.py b/discord/client.py index 75b3c9a3..a0683c25 100644 --- a/discord/client.py +++ b/discord/client.py @@ -584,6 +584,7 @@ class Client: Logs out of Discord and closes all connections.""" response = yield from self.session.post(endpoints.LOGOUT, headers=self.headers) + yield from response.release() yield from self.close() self._is_logged_in = False log.debug(request_logging_format.format(method='POST', response=response)) |