diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-07-28 15:44:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-28 15:44:42 +0300 |
commit | f0016912368a425a3fe25def78ae377ad04a827a (patch) | |
tree | c5b09314209de9bf66eab34ceaa1266397925682 | |
parent | 121d16fa9dd360c3c08b8c0903a7742652450927 (diff) | |
parent | 32cc86f0ad564435b38d92e8614480e0a9a0c025 (diff) |
Merge pull request #240 from nextcloud/fix/scanner-shutdown
Shutdown scanner when handling encryption error
-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(); } |