From 039115d8f4306fdad0fb1c78b6ec76aea96e086b Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Sat, 15 Apr 2023 11:41:15 -0700 Subject: [PATCH] index: move clean to finally Signed-off-by: Varun Patil --- lib/Service/Index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Service/Index.php b/lib/Service/Index.php index d1a4d2da..dec12cf3 100644 --- a/lib/Service/Index.php +++ b/lib/Service/Index.php @@ -190,9 +190,9 @@ class Index $this->timelineWrite->processFile($file); } catch (\Exception $e) { $this->error("Failed to index file {$file->getPath()}: {$e->getMessage()}"); + } finally { + $this->tempManager->clean(); } - - $this->tempManager->clean(); } /**