mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: change order of session store and removal from maps
parent
c2af1aab01
commit
e663680b48
|
@ -524,8 +524,8 @@ public class KurentoSessionManager extends SessionManager {
|
|||
}
|
||||
session = new KurentoSession(sessionNotActive, kms, kurentoSessionEventsHandler, kurentoEndpointConfig);
|
||||
|
||||
sessionsNotActive.remove(session.getSessionId());
|
||||
KurentoSession oldSession = (KurentoSession) sessions.putIfAbsent(session.getSessionId(), session);
|
||||
sessionsNotActive.remove(session.getSessionId());
|
||||
if (oldSession != null) {
|
||||
log.warn("Session '{}' has just been created by another thread", session.getSessionId());
|
||||
return oldSession;
|
||||
|
|
|
@ -206,8 +206,8 @@ public class SingleStreamRecordingService extends RecordingService {
|
|||
return finalRecordingArray[0];
|
||||
}
|
||||
|
||||
public void startRecorderEndpointForPublisherEndpoint(Session session, String recordingId,
|
||||
MediaProfileSpecType profile, Participant participant, CountDownLatch globalStartLatch) {
|
||||
public void startRecorderEndpointForPublisherEndpoint(final Session session, String recordingId,
|
||||
MediaProfileSpecType profile, final Participant participant, CountDownLatch globalStartLatch) {
|
||||
log.info("Starting single stream recorder for stream {} in session {}", participant.getPublisherStreamId(),
|
||||
session.getSessionId());
|
||||
|
||||
|
|
Loading…
Reference in New Issue