aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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))