Fix exception on delete

This commit is contained in:
Roeland Jago Douma 2016-02-06 13:31:31 +01:00
parent 8486d61764
commit 46faf6d3ca

View file

@ -22,6 +22,7 @@
namespace OC\Share20;
use OCP\Files\IRootFolder;
use OCP\Files\NotFoundException;
use OCP\IUserManager;
use OCP\Share\IManager;
use OCP\Share\IProviderFactory;
@ -795,7 +796,11 @@ class Manager implements IManager {
if ($share->getExpirationDate() !== null &&
$share->getExpirationDate() <= $today
) {
$this->deleteShare($share);
try {
$this->deleteShare($share);
} catch (NotFoundException $e) {
//Ignore since this basically means the share is deleted
}
continue;
}
$added++;