Commit aaf2251e authored by Julien Muchembled's avatar 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, ...@@ -212,7 +212,14 @@ class Storage(BaseStorage.BaseStorage,
pass pass
def close(self): 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): def getTid(self, oid):
try: 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 to comment