Set timeout for aquiring lock to 5min

This commit is contained in:
Matthias Bernt
2017-08-17 20:02:47 +02:00
committed by mvdbeek
parent 349c9c8f10
commit a76547281f
+1 -1
View File
@@ -69,7 +69,7 @@ def ensure_installed(installable_context, install_func, auto_init):
try:
if auto_init and os.access(parent_path, os.W_OK):
with FileLock(os.path.join(parent_path, desc.lower())):
with FileLock(os.path.join(parent_path, desc.lower()), timeout=300):
return _check()
else:
return _check()