Skip to content
Snippets Groups Projects
Commit 1cf3a69d authored by jimpp's avatar jimpp
Browse files

Do not wait for os_info if contact is not connected

parent 84b9e2af
No related branches found
No related tags found
No related merge requests found
......@@ -281,8 +281,10 @@ class VcardWindow:
gajim.connections[self.account].request_last_status_time(self.contact.jid,
self.contact.resource)
# Request os info in contact is connected
if self.contact.show not in ('offline', 'error'):
# do not wait for os_info if contact is not connected
if self.contact.show in ('offline', 'error'):
self.os_info_arrived = True
else: # Request os info if contact is connected
gobject.idle_add(gajim.connections[self.account].request_os_info,
self.contact.jid, self.contact.resource)
self.os_info = {0: {'resource': self.contact.resource, 'client': '',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment