mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 21:10:29 +00:00
Properly close the sqlite3 connection (#560)
This commit is contained in:
@@ -253,6 +253,7 @@ class TelegramBareClient:
|
||||
|
||||
# TODO Shall we clear the _exported_sessions, or may be reused?
|
||||
self._first_request = True # On reconnect it will be first again
|
||||
self.session.close()
|
||||
|
||||
def __del__(self):
|
||||
self.disconnect()
|
||||
|
Reference in New Issue
Block a user