Commit e1f5ac14 authored by Julien Muchembled's avatar Julien Muchembled

More resource leak fixes

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2831 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent e71d3def
......@@ -92,6 +92,8 @@ class Application(object):
self.listening_conn = None
self.nm.close()
self.em.close()
if self.dm is not None:
self.dm.close()
del self.__dict__
def _poll(self):
......
......@@ -30,6 +30,9 @@ class DatabaseManager(object):
"""
self._under_transaction = False
def close(self):
pass
def isUnderTransaction(self):
return self._under_transaction
......
......@@ -418,7 +418,7 @@ class NEOCluster(object):
for node in getattr(self, node_type + '_list'):
node.resetNode(**kw)
self.client = ClientApplication(self)
self.neoctl = NeoCTL(self)
self.neoctl = NeoCTL(weakref.proxy(self))
def start(self, storage_list=None, fast_startup=True):
self._patch()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment