From 0f3e7d2057830935a8a86e412d72844fe89df0d8 Mon Sep 17 00:00:00 2001
From: Denis Fomin <fominde@gmail.com>
Date: Mon, 19 Sep 2011 18:45:41 +0300
Subject: [PATCH] juick. close db

---
 juick/plugin.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/juick/plugin.py b/juick/plugin.py
index 6cf9a818..59f93783 100644
--- a/juick/plugin.py
+++ b/juick/plugin.py
@@ -69,7 +69,6 @@ class JuickPlugin(GajimPlugin):
         self.conn = sqlite3.connect(os.path.join(self.cache_path, 'juick_db'))
         self.conn.execute('create table if not exists person'
             '(nick, id, last_modified)')
-        self.conn.commit()
         self.cursor = self.conn.cursor()
 
     @log_calls('JuickPlugin')
@@ -77,6 +76,7 @@ class JuickPlugin(GajimPlugin):
         for control in self.controls:
             control.disconnect_from_chat_control()
         self.controls = []
+        self.conn.close()
 
 
 class Base(object):
-- 
GitLab