diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-07-28 14:03:40 +0300 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-07-28 14:21:26 +0300 |
commit | 32cc86f0ad564435b38d92e8614480e0a9a0c025 (patch) | |
tree | c5b09314209de9bf66eab34ceaa1266397925682 | |
parent | 121d16fa9dd360c3c08b8c0903a7742652450927 (diff) |
Shutdown scanner when handling encryption error
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
-rw-r--r-- | lib/Scanner/ScannerBase.php | 1 |
1 files changed, 1 insertions, 0 deletions
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(); } |