From 5498ad37c8e1235863040eeaa854ac5d3e6cfc89 Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 10 May 2012 18:22:10 +0200 Subject: Prevent iq errors & timeouts on /join completion --- src/core.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core.py b/src/core.py index 9b704682..94c1af5a 100644 --- a/src/core.py +++ b/src/core.py @@ -1714,7 +1714,10 @@ class Core(object): if jid.resource or jid.full.endswith('/'): # we are writing the resource: complete the node if not the_input.last_completion: - response = self.xmpp.plugin['xep_0030'].get_items(jid=jid.server, block=True, timeout=1) + try: + response = self.xmpp.plugin['xep_0030'].get_items(jid=jid.server, block=True, timeout=1) + except: + response = None if response: items = response['disco_items'].get_items() else: -- cgit v1.2.3