oepnvidu-server: alway set disconnection time on KurentoClientListener

pull/431/head
pabloFuente 2020-04-09 18:34:37 +02:00
parent 151344ce59
commit 8ab37ab97d
1 changed files with 5 additions and 5 deletions

View File

@ -203,6 +203,9 @@ public abstract class KmsManager {
public void disconnected() {
final Kms kms = kmss.get(kmsId);
kms.setKurentoClientConnected(false);
kms.setTimeOfKurentoClientDisconnection(System.currentTimeMillis());
if(kms.getKurentoClient().isClosed()) {
log.info("Kurento Client \"disconnected\" event for KMS {} [{}]. Closed explicitely", kms.getUri(),
kms.getKurentoClient().toString());
@ -212,9 +215,6 @@ public abstract class KmsManager {
kms.getKurentoClient().toString());
}
kms.setKurentoClientConnected(false);
kms.setTimeOfKurentoClientDisconnection(System.currentTimeMillis());
// TODO: this is a fix for the lack of reconnected event
kmsReconnectionLocks.putIfAbsent(kms.getId(), new ReentrantLock());
Timer timer = new Timer();