From 1f760de1ff598b122920aa614ba3868c1f0a715a Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 6 Aug 2009 00:07:23 +0200 Subject: [PATCH] prevent traceback. Fixes #5202 --- src/common/connection.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/connection.py b/src/common/connection.py index 1fb866ade..865b63cfb 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -1880,6 +1880,8 @@ class Connection(ConnectionHandlers): self.connection.send(iq) def send_gc_config(self, room_jid, form): + if not self.connection: + return iq = common.xmpp.Iq(typ = 'set', to = room_jid, queryNS =\ common.xmpp.NS_MUC_OWNER) query = iq.getTag('query')