openvidu-server: minor refactoring at @PreDestroy of KmsManager
This commit is contained in:
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…
x
Reference in New Issue
Block a user