Revert async sessions from 3dd8b7c (breaks sync properties)

Such as ChatGetter.input_chat and SenderGetter.input_sender
which rely on the fact that access to the session file will
be synchronous.
This commit is contained in:
Lonami Exo
2018-10-12 22:00:02 +02:00
parent e677a6bb05
commit cf6686ff42
6 changed files with 29 additions and 21 deletions

View File

@@ -399,7 +399,7 @@ class AuthMethods(MessageParseMethods, UserMethods):
self._self_input_peer = None
self._state.pts = -1
await self.disconnect()
await self.session.delete()
self.session.delete()
return True
async def edit_2fa(