diff options
author | Denis Fomin <fominde@gmail.com> | 2011-09-19 19:45:41 +0400 |
---|---|---|
committer | Denis Fomin <fominde@gmail.com> | 2011-09-19 19:45:41 +0400 |
commit | 0f3e7d2057830935a8a86e412d72844fe89df0d8 (patch) | |
tree | 2bffb9e1fc2a2ebe8c68d42763bb04b9739bf677 | |
parent | d9a5a816de13c00e1cf4bf642f27f2a730a31bef (diff) |
juick. close db
-rw-r--r-- | juick/plugin.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/juick/plugin.py b/juick/plugin.py index 6cf9a81..59f9378 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): |