Do not replace existing session (#63)

This commit is contained in:
vslg
2020-06-28 09:46:34 -03:00
committed by miruka
parent 0a2d274824
commit d2229554a9
2 changed files with 14 additions and 3 deletions

View File

@@ -135,6 +135,11 @@ class Backend:
await client.close()
raise
# Check if the user is already present on mirage
if client.user_id in self.clients.keys():
await client.logout()
return client.user_id
if order is None and not self.models["accounts"]:
order = 0
elif order is None: