Hornwitser a4c152cebc 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.
2015-09-19 18:32:39 +02:00
..
2015-09-16 17:27:52 -04:00
2015-09-05 00:57:52 -04:00
2015-08-21 18:18:34 -04:00
2015-09-13 22:28:02 -04:00