mirror of https://github.com/OpenVidu/openvidu.git
oepnvidu-server: alway set disconnection time on KurentoClientListener
parent
151344ce59
commit
8ab37ab97d
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue