Replace System.exit with Runtime.getRuntime.halt

pull/656/head
pabloFuente 2021-09-22 11:16:15 +02:00
parent 88fdea590d
commit 34a16cf98c
2 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ public class FixedOneKmsManager extends KmsManager {
} catch (Exception e) {
// Some KMS wasn't reachable
log.error("Shutting down OpenVidu Server");
System.exit(1);
Runtime.getRuntime().halt(1);
}
}

View File

@ -157,7 +157,7 @@ public class RecordingManager {
+ "\" set with system property \"OPENVIDU_RECORDING_CUSTOM_LAYOUT\"";
}
log.error(finalErrorMessage + ". Shutting down OpenVidu Server");
System.exit(1);
Runtime.getRuntime().halt(1);
}
} else {
log.info("OpenVidu recording service is disabled");