aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2015-12-13 02:04:21 -0500
committerRapptz <[email protected]>2015-12-13 02:13:09 -0500
commite39ba00dcf11e4008fbe6ef4eb978ff94b475c92 (patch)
tree38fed102c9f3e90d76fe4d6f0c75cb24f481dd05
parentAdd discord.utils.get helper. (diff)
downloaddiscord.py-e39ba00dcf11e4008fbe6ef4eb978ff94b475c92.tar.xz
discord.py-e39ba00dcf11e4008fbe6ef4eb978ff94b475c92.zip
Client.logout now properly cleans up the response.
-rw-r--r--discord/client.py1
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))