Don’t lock cache directory while cleaning

This commit is contained in:
Ivan Kravets
2017-02-02 02:52:07 +02:00
parent 20d9f7dae7
commit 84d5fbcfe5

View File

@ -238,8 +238,6 @@ class ContentCache(object):
def clean(self):
if not self.cache_dir or not isdir(self.cache_dir):
return
if not self._lock_dbindex():
return
util.rmtree_(self.cache_dir)