server/sources/native.py
branchstable
changeset 5749 b4393b681f7a
parent 5729 b00cf7fbff31
child 5751 1e5ef464cade
--- a/server/sources/native.py	Tue Jun 15 18:00:26 2010 +0200
+++ b/server/sources/native.py	Tue Jun 15 18:00:28 2010 +0200
@@ -335,6 +335,10 @@
     def init(self):
         self.init_creating()
 
+    def shutdown(self):
+        if self._eid_creation_cnx:
+            self._eid_creation_cnx.close()
+
     # XXX deprecates [un]map_attribute ?
     def map_attribute(self, etype, attr, cb, sourcedb=True):
         self._rql_sqlgen.attr_map['%s.%s' % (etype, attr)] = (cb, sourcedb)