mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: fix session close up order
parent
47970a1cd3
commit
acec341364
|
@ -609,21 +609,18 @@ public abstract class SessionManager {
|
|||
final String mediaNodeId = session.getMediaNodeId();
|
||||
|
||||
if (session.close(reason)) {
|
||||
|
||||
this.cleanCollections(session.getSessionId());
|
||||
|
||||
log.info("Session '{}' removed and closed", session.getSessionId());
|
||||
|
||||
try {
|
||||
sessionEventsHandler.onSessionClosed(session.getSessionId(), reason);
|
||||
} catch (Exception e) {
|
||||
log.error("Error recording 'sessionDestroyed' event for session {}: {} - {}", session.getSessionId(),
|
||||
e.getClass().getName(), e.getMessage());
|
||||
}
|
||||
} else {
|
||||
this.cleanCollections(session.getSessionId());
|
||||
}
|
||||
|
||||
this.cleanCollections(session.getSessionId());
|
||||
|
||||
log.info("Session '{}' removed and closed", session.getSessionId());
|
||||
|
||||
if (mediaNodeId != null) {
|
||||
this.quarantineKiller.dropMediaNode(mediaNodeId);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue