mirror of https://github.com/OpenVidu/openvidu.git
Replace System.exit with Runtime.getRuntime.halt
parent
88fdea590d
commit
34a16cf98c
|
@ -104,7 +104,7 @@ public class FixedOneKmsManager extends KmsManager {
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
// Some KMS wasn't reachable
|
// Some KMS wasn't reachable
|
||||||
log.error("Shutting down OpenVidu Server");
|
log.error("Shutting down OpenVidu Server");
|
||||||
System.exit(1);
|
Runtime.getRuntime().halt(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -157,7 +157,7 @@ public class RecordingManager {
|
||||||
+ "\" set with system property \"OPENVIDU_RECORDING_CUSTOM_LAYOUT\"";
|
+ "\" set with system property \"OPENVIDU_RECORDING_CUSTOM_LAYOUT\"";
|
||||||
}
|
}
|
||||||
log.error(finalErrorMessage + ". Shutting down OpenVidu Server");
|
log.error(finalErrorMessage + ". Shutting down OpenVidu Server");
|
||||||
System.exit(1);
|
Runtime.getRuntime().halt(1);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
log.info("OpenVidu recording service is disabled");
|
log.info("OpenVidu recording service is disabled");
|
||||||
|
|
Loading…
Reference in New Issue