aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorHornwitser <[email protected]>2015-09-19 17:29:27 +0200
committerHornwitser <[email protected]>2015-09-19 18:32:39 +0200
commita4c152cebcd000eaa947654bdd7968eb5fb6c27d (patch)
tree261854083cecfc8b6f0e815034276a734aecd33c /docs
parentAdd support for logging. (diff)
downloaddiscord.py-a4c152cebcd000eaa947654bdd7968eb5fb6c27d.tar.xz
discord.py-a4c152cebcd000eaa947654bdd7968eb5fb6c27d.zip
Fix keep_alive running after logout()
_keep_alive_handler would set up another keep alive after the first one by creating a new threading.Timer object, but Client would only keep track of the first timer object. Thus casing the keep alive to continue running after Client.logout calls cancel() on it's timer object, as it no longer references the actual timer object waiting for the keep alive. Fix by replacing _keep_alive_handler with a threading.Thread subclass that sends keep_alives of the given interval and exits when its stop event is set.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions