mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-17 03:09:05 +00:00
Client.logout now properly cleans up the response.
This commit is contained in:
parent
338fb3e504
commit
e39ba00dcf
@ -584,6 +584,7 @@ class Client:
|
|||||||
|
|
||||||
Logs out of Discord and closes all connections."""
|
Logs out of Discord and closes all connections."""
|
||||||
response = yield from self.session.post(endpoints.LOGOUT, headers=self.headers)
|
response = yield from self.session.post(endpoints.LOGOUT, headers=self.headers)
|
||||||
|
yield from response.release()
|
||||||
yield from self.close()
|
yield from self.close()
|
||||||
self._is_logged_in = False
|
self._is_logged_in = False
|
||||||
log.debug(request_logging_format.format(method='POST', response=response))
|
log.debug(request_logging_format.format(method='POST', response=response))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user