diff options
author | btimby <btimby@67cdc799-7952-0410-af00-57a81ceafa0f> | 2013-03-04 15:33:27 +0000 |
---|---|---|
committer | btimby <btimby@67cdc799-7952-0410-af00-57a81ceafa0f> | 2013-03-04 15:33:27 +0000 |
commit | e9bd2869ec6073cbb167fb6ec49dad7799ae1238 (patch) | |
tree | e5557fbbaa0c3308feb6df0cfdcae6fa81f64f95 | |
parent | 01a75ea85ceda350213229967f132b40bce404e8 (diff) | |
download | pyfilesystem-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.py | 5 |
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): |