From 32cc86f0ad564435b38d92e8614480e0a9a0c025 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Thu, 28 Jul 2022 13:03:40 +0200 Subject: Shutdown scanner when handling encryption error Signed-off-by: Carl Schwan --- lib/Scanner/ScannerBase.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Scanner/ScannerBase.php b/lib/Scanner/ScannerBase.php index 1e93572..d964266 100644 --- a/lib/Scanner/ScannerBase.php +++ b/lib/Scanner/ScannerBase.php @@ -117,6 +117,7 @@ abstract class ScannerBase implements IScanner { } } catch (\OCP\Encryption\Exceptions\GenericEncryptionException $e) { // We can't read the file, ignore + $this->shutdownScanner(); $this->status->setNumericStatus(Status::SCANRESULT_CLEAN); return $this->getStatus(); } -- cgit v1.2.3