Commit a245abee authored by Jim Fulton's avatar Jim Fulton

Cleaned up whitespace and try to avoid a close race.

parent f65ea6d8
......@@ -379,10 +379,12 @@ class ClientCache(object):
# Close the underlying file. No methods accessing the cache should be
# used after this.
def close(self):
if self.f:
sync(self.f)
self.f.close()
f = self.f
self.f = None
if f is not None:
sync(f)
f.close()
if hasattr(self,'_lock_file'):
self._lock_file.close()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment