summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbtimby <btimby@67cdc799-7952-0410-af00-57a81ceafa0f>2013-03-04 15:33:27 +0000
committerbtimby <btimby@67cdc799-7952-0410-af00-57a81ceafa0f>2013-03-04 15:33:27 +0000
commit9f2772207ddff3a201b4d6c652ad767a315671b5 (patch)
treee5557fbbaa0c3308feb6df0cfdcae6fa81f64f95
parent56227fb88bf5123082b4dc9832da29eca69fd697 (diff)
downloadpyfilesystem-git-9f2772207ddff3a201b4d6c652ad767a315671b5.tar.gz
Don\'t double-close.
-rw-r--r--fs/contrib/archivefs.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/contrib/archivefs.py b/fs/contrib/archivefs.py
index 428c680..4c7f2a6 100644
--- a/fs/contrib/archivefs.py
+++ b/fs/contrib/archivefs.py
@@ -186,8 +186,9 @@ class ArchiveMountFS(mountfs.MountFS):
@synchronize
def close(self):
# Close and delete references to any other fs instances.
- self.rootfs.close()
- self.rootfs = None
+ if self.rootsfs is not None:
+ self.rootfs.close()
+ self.rootfs = None
super(ArchiveMountFS, self).close()
def ismount(self, path):