SUPPORT-8841: fix

This commit is contained in:
Alexandr Shalaginov 2025-01-14 09:24:15 +03:00
parent cdefb3a684
commit a5ef6348ee

View file

@ -68,11 +68,12 @@ public class FileScanService {
try (InputStream inputStream = process.getInputStream()) {
String result = new String(inputStream.readAllBytes());
LOGGER.info("File {} scanned with result: {}", originalFileName, result);
checkScanResult(result, originalFileName);
int exitCode = process.waitFor();
LOGGER.info("File {} scanned with result: {}", originalFileName, result);
if (exitCode == 0) {
checkScanResult(result, originalFileName);
return new ScanResult(
null,
null,