Fix infinite account spinner when logging in twice

This commit is contained in:
miruka
2020-08-21 05:29:42 -04:00
parent bd01d9edd0
commit e0e92152d0
4 changed files with 4 additions and 6 deletions

View File

@@ -281,7 +281,7 @@ class MatrixClient(nio.AsyncClient):
self.user_id, Account(self.user_id, order),
)
# TODO: be abke to set presence before logging in
# TODO: be able to set presence before logging in
item.set_fields(presence=Presence.State.online, connecting=True)
self._presence = "online"
self.start_task = asyncio.ensure_future(self._start())