File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -1352,12 +1352,10 @@ def cache_lock(self, url):
1352
1352
lock_dir = os .path .join (cpath , '.lock' )
1353
1353
lock_file = os .path .join (lock_dir , 'pid' )
1354
1354
1355
- # this loop is handling a lock file from another process if exists
1356
1355
for i in range (300 ):
1357
1356
if i :
1358
1357
time .sleep (1 )
1359
1358
1360
- # lock file exists, but we need to check pid as well in case the process died
1361
1359
if os .path .exists (lock_dir ):
1362
1360
if os .path .isfile (lock_file ):
1363
1361
with open (lock_file , 'r' , 0 ) as f :
@@ -1399,6 +1397,7 @@ def cache_unlock(self, url):
1399
1397
cpath = self .url2cachedir (url )
1400
1398
if not cpath :
1401
1399
return False
1400
+
1402
1401
lock_dir = os .path .join (cpath , '.lock' )
1403
1402
lock_file = os .path .join (lock_dir , 'pid' )
1404
1403
if os .path .exists (lock_dir ):
You can’t perform that action at this time.
0 commit comments