Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_antivirus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-07-28 14:03:40 +0300
committerCarl Schwan <carl@carlschwan.eu>2022-07-28 14:21:26 +0300
commit32cc86f0ad564435b38d92e8614480e0a9a0c025 (patch)
treec5b09314209de9bf66eab34ceaa1266397925682
parent121d16fa9dd360c3c08b8c0903a7742652450927 (diff)
Shutdown scanner when handling encryption error
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
-rw-r--r--lib/Scanner/ScannerBase.php1
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();
}