Commit aaf2251e by Julien Muchembled

client: do nothing (instead of raising) if a closed Storage is closed again

This follows the behaviour of FileStorage.
parent d75fcc59
......@@ -212,7 +212,14 @@ class Storage(BaseStorage.BaseStorage,
pass
def close(self):
self.app.close()
# WARNING: This does not handle the case where an app is shared by
# several Storage instances, but this is something that only
# happens in threaded tests (and this method is not called on
# extra Storages).
app = self.app
if app is not None:
self.app = None
app.close()
def getTid(self, oid):
try:
......
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 sign in to comment