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
commite9bd2869ec6073cbb167fb6ec49dad7799ae1238 (patch)
treee5557fbbaa0c3308feb6df0cfdcae6fa81f64f95
parent01a75ea85ceda350213229967f132b40bce404e8 (diff)
downloadpyfilesystem-e9bd2869ec6073cbb167fb6ec49dad7799ae1238.tar.gz
Don\'t double-close.
git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@845 67cdc799-7952-0410-af00-57a81ceafa0f
-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):