mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: minor refactoring at @PreDestroy of KmsManager
parent
3a3c474b84
commit
7231b3efe0
|
@ -314,13 +314,13 @@ public abstract class KmsManager {
|
|||
|
||||
@PreDestroy
|
||||
public void close() {
|
||||
if (kurentoReconnectTimer != null) {
|
||||
kurentoReconnectTimer.cancelTimer();
|
||||
}
|
||||
log.info("Closing all KurentoClients");
|
||||
this.kmss.values().forEach(kms -> {
|
||||
kms.getKurentoClient().destroy();
|
||||
});
|
||||
if (kurentoReconnectTimer != null) {
|
||||
kurentoReconnectTimer.cancelTimer();
|
||||
}
|
||||
}
|
||||
|
||||
public static String generateKmsId() {
|
||||
|
|
Loading…
Reference in New Issue