diff options
-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): |