Close connections after creating the tables
[cascardo/ipsilon.git] / ipsilon / util / sessions.py
index 8df3b4d..86113a1 100644 (file)
@@ -21,6 +21,7 @@ class SessionStore(Store):
         q = self._query(self._db, 'sessions', SESSION_TABLE,
                         trans=False)
         q.create()
+        q._con.close()  # pylint: disable=protected-access
 
     def _upgrade_schema(self, old_version):
         if old_version == 1: