diff options
author | Philipp Hörist <philipp@hoerist.com> | 2022-10-05 23:23:50 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2022-10-05 23:59:05 +0300 |
commit | 30071a1febaadf80beedb0627b7b9fd553422897 (patch) | |
tree | 5c662c5fce36ccf30a864b44aaec6ee2867ad15f | |
parent | b613e763a6eca690cc1544bd3e6318f6bdfca617 (diff) |
cfix: VCardAvatars: Set task obsolete if we are not connected
-rw-r--r-- | gajim/common/modules/vcard_avatars.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gajim/common/modules/vcard_avatars.py b/gajim/common/modules/vcard_avatars.py index ba139b6ea..005a83308 100644 --- a/gajim/common/modules/vcard_avatars.py +++ b/gajim/common/modules/vcard_avatars.py @@ -257,9 +257,11 @@ class VCardAvatarsTask(Task): try: client = app.get_client(self._contact.account) except Exception: + self.set_obsolete() return False if not client.state.is_available: + self.set_obsolete() return False if isinstance(self._contact, GroupchatParticipant): |