Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hörist <philipp@hoerist.com>2022-10-05 23:23:50 +0300
committerPhilipp Hörist <philipp@hoerist.com>2022-10-05 23:59:05 +0300
commit30071a1febaadf80beedb0627b7b9fd553422897 (patch)
tree5c662c5fce36ccf30a864b44aaec6ee2867ad15f
parentb613e763a6eca690cc1544bd3e6318f6bdfca617 (diff)
cfix: VCardAvatars: Set task obsolete if we are not connected
-rw-r--r--gajim/common/modules/vcard_avatars.py2
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):