Do not wait for os_info if contact is not connected

This commit is contained in:
Jean-Marie Traissard 2006-09-26 03:07:52 +00:00
parent 84b9e2af34
commit 1cf3a69d7b
1 changed files with 4 additions and 2 deletions

View File

@ -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': '',