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

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Fomin <fominde@gmail.com>2012-04-22 17:15:50 +0400
committerDenis Fomin <fominde@gmail.com>2012-04-22 17:15:50 +0400
commit9536ebb214a581c730cb93b137b180b87226c8fb (patch)
tree0318beff55c95e02857e6d0a0601174b82f0e4cf /juick/plugin.py
parent65b511f6aaf27bcde6df5ce9e20b5a35ecdae3f3 (diff)
Juick. prevent traceback
Diffstat (limited to 'juick/plugin.py')
-rw-r--r--juick/plugin.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/juick/plugin.py b/juick/plugin.py
index cb28583..5f2ed88 100644
--- a/juick/plugin.py
+++ b/juick/plugin.py
@@ -56,6 +56,7 @@ class JuickPlugin(GajimPlugin):
'MENUITEM10': ('', ''), 'MENUITEM_TEXT10': ('', ''), }
self.chat_control = None
self.controls = []
+ self.conn = None
self.cache_path = os.path.join(gajim.AVATAR_PATH, 'juick')
if not os.path.isdir(self.cache_path):
os.makedirs(self.cache_path)
@@ -78,7 +79,8 @@ class JuickPlugin(GajimPlugin):
for control in self.controls:
control.disconnect_from_chat_control()
self.controls = []
- self.conn.close()
+ if self.conn:
+ self.conn.close()
def print_special_text(self, tv, special_text, other_tags, graphics=True):
for control in self.controls: