mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Merge pull request #476 from Unrud/closelockfile
Add option to close lock file
This commit is contained in:
commit
e66a35e996
3 changed files with 8 additions and 1 deletions
|
@ -793,3 +793,7 @@ class Collection(BaseCollection):
|
|||
cls._lock_file_locked = False
|
||||
if cls._waiters:
|
||||
cls._waiters[0].notify()
|
||||
if (cls.configuration.getboolean("storage", "close_lock_file")
|
||||
and cls._readers == 0 and not cls._waiters):
|
||||
cls._lock_file.close()
|
||||
cls._lock_file = None
|
Loading…
Add table
Add a link
Reference in a new issue