openvidu-server: minor refactoring at @PreDestroy of KmsManager

pull/577/head
pabloFuente 2021-01-18 12:43:23 +01:00
parent 3a3c474b84
commit 7231b3efe0
1 changed files with 3 additions and 3 deletions

View File

@ -314,13 +314,13 @@ public abstract class KmsManager {
@PreDestroy @PreDestroy
public void close() { public void close() {
if (kurentoReconnectTimer != null) {
kurentoReconnectTimer.cancelTimer();
}
log.info("Closing all KurentoClients"); log.info("Closing all KurentoClients");
this.kmss.values().forEach(kms -> { this.kmss.values().forEach(kms -> {
kms.getKurentoClient().destroy(); kms.getKurentoClient().destroy();
}); });
if (kurentoReconnectTimer != null) {
kurentoReconnectTimer.cancelTimer();
}
} }
public static String generateKmsId() { public static String generateKmsId() {