juick. close db

This commit is contained in:
Denis Fomin
2011-09-19 18:45:41 +03:00
parent d9a5a816de
commit 0f3e7d2057

View File

@@ -69,7 +69,6 @@ class JuickPlugin(GajimPlugin):
self.conn = sqlite3.connect(os.path.join(self.cache_path, 'juick_db')) self.conn = sqlite3.connect(os.path.join(self.cache_path, 'juick_db'))
self.conn.execute('create table if not exists person' self.conn.execute('create table if not exists person'
'(nick, id, last_modified)') '(nick, id, last_modified)')
self.conn.commit()
self.cursor = self.conn.cursor() self.cursor = self.conn.cursor()
@log_calls('JuickPlugin') @log_calls('JuickPlugin')
@@ -77,6 +76,7 @@ class JuickPlugin(GajimPlugin):
for control in self.controls: for control in self.controls:
control.disconnect_from_chat_control() control.disconnect_from_chat_control()
self.controls = [] self.controls = []
self.conn.close()
class Base(object): class Base(object):