mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: grant session collections are clean before sessionDestroyed
parent
8e3f1e1eaf
commit
6c90d6426b
|
@ -609,6 +609,11 @@ public abstract class SessionManager {
|
||||||
final String mediaNodeId = session.getMediaNodeId();
|
final String mediaNodeId = session.getMediaNodeId();
|
||||||
|
|
||||||
if (session.close(reason)) {
|
if (session.close(reason)) {
|
||||||
|
|
||||||
|
this.cleanCollections(session.getSessionId());
|
||||||
|
|
||||||
|
log.info("Session '{}' removed and closed", session.getSessionId());
|
||||||
|
|
||||||
try {
|
try {
|
||||||
sessionEventsHandler.onSessionClosed(session.getSessionId(), reason);
|
sessionEventsHandler.onSessionClosed(session.getSessionId(), reason);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
@ -617,10 +622,6 @@ public abstract class SessionManager {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.cleanCollections(session.getSessionId());
|
|
||||||
|
|
||||||
log.info("Session '{}' removed and closed", session.getSessionId());
|
|
||||||
|
|
||||||
if (mediaNodeId != null) {
|
if (mediaNodeId != null) {
|
||||||
this.quarantineKiller.dropMediaNode(mediaNodeId);
|
this.quarantineKiller.dropMediaNode(mediaNodeId);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue