Commit ab56f694 authored by Vincent Petry's avatar Vincent Petry
Browse files

Do not expire chunks while checking for their existence

The expiration should be done by the gc() function on login, not while
isComplete() is calling hasKey() for every chunk.
parent e2969062
......@@ -84,11 +84,6 @@ class File {
public function hasKey($key) {
$storage = $this->getStorage();
if ($storage && $storage->is_file($key)) {
$mtime = $storage->filemtime($key);
if ($mtime < time()) {
$storage->unlink($key);
return false;
}
return true;
}
return false;
......
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