mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: joinRoom try-finally extended
parent
3e02a1b31f
commit
6518166c0b
|
@ -257,11 +257,11 @@ public class RpcHandler extends DefaultJsonRpcHandler<JsonObject> {
|
|||
|
||||
// While closing a session users can't join
|
||||
if (session.closingLock.readLock().tryLock()) {
|
||||
try {
|
||||
if (session.isClosed()) {
|
||||
throw new OpenViduException(Code.ROOM_CLOSED_ERROR_CODE,
|
||||
"Unable to join the session. Session " + sessionId + " is closed");
|
||||
}
|
||||
try {
|
||||
Participant participant;
|
||||
if (generateRecorderParticipant) {
|
||||
participant = sessionManager.newRecorderParticipant(sessionId, participantPrivatetId,
|
||||
|
|
Loading…
Reference in New Issue