aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layman/flocker.py')
-rw-r--r--layman/flocker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/layman/flocker.py b/layman/flocker.py
index 21f34c3..36a12b8 100644
--- a/layman/flocker.py
+++ b/layman/flocker.py
@@ -72,7 +72,7 @@ class FileLocker(object):
'''Obtains file object for given path'''
assert mode in ('r', 'w+')
- if path not in self.files:
+ if path not in self.files or self.files[path].closed:
self.files[path] = fileopen(path, mode)
f = self.files[path]