Stop joining read thread on disconnect, as it may be None

This commit is contained in:
Lonami Exo 2017-12-27 12:37:07 +01:00
parent b11c2e885b
commit f8745155ac

View File

@ -260,10 +260,6 @@ class TelegramBareClient:
__log__.debug('Disconnecting the socket...') __log__.debug('Disconnecting the socket...')
self._sender.disconnect() self._sender.disconnect()
if self._recv_thread:
__log__.debug('Joining the read thread...')
self._recv_thread.join()
# TODO Shall we clear the _exported_sessions, or may be reused? # TODO Shall we clear the _exported_sessions, or may be reused?
pass pass