commented empty session deletion

pull/583/head
Ajay Kumar 2020-12-29 05:58:28 +05:30
parent 3e95c702d0
commit 9baff15b65
2 changed files with 4 additions and 5 deletions

View File

@ -270,10 +270,10 @@ public class KurentoSessionManager extends SessionManager {
if (session.isClosed()) { if (session.isClosed()) {
return false; return false;
} }
log.info("No more participants in session '{}', removing it and closing it", // log.info("No more participants in session '{}', removing it and closing it",
sessionId); // sessionId);
this.closeSessionAndEmptyCollections(session, reason, true); // this.closeSessionAndEmptyCollections(session, reason, true);
sessionClosedByLastParticipant = true; // sessionClosedByLastParticipant = true;
} finally { } finally {
session.closingLock.writeLock().unlock(); session.closingLock.writeLock().unlock();
} }

View File

@ -102,7 +102,6 @@ public class SessionRestController {
log.info("REST API: POST {}/sessions {}", RequestMappings.API, params != null ? params.toString() : "{}"); log.info("REST API: POST {}/sessions {}", RequestMappings.API, params != null ? params.toString() : "{}");
String remoteAddress = request.getHeader("X-Forwarded-For"); String remoteAddress = request.getHeader("X-Forwarded-For");
log.info("###### REMOTE ADDRESS {}", remoteAddress);
SessionProperties sessionProperties; SessionProperties sessionProperties;
try { try {
sessionProperties = getSessionPropertiesFromParams(params).build(); sessionProperties = getSessionPropertiesFromParams(params).build();