mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: session already created message improved
parent
8eae2e0eab
commit
67fad6a3ce
|
@ -112,6 +112,7 @@ public class SessionRestController {
|
|||
String sessionId;
|
||||
if (sessionProperties.customSessionId() != null && !sessionProperties.customSessionId().isEmpty()) {
|
||||
if (sessionManager.getSessionWithNotActive(sessionProperties.customSessionId()) != null) {
|
||||
log.warn("Session {} is already created", sessionProperties.customSessionId());
|
||||
return new ResponseEntity<>(HttpStatus.CONFLICT);
|
||||
}
|
||||
sessionId = sessionProperties.customSessionId();
|
||||
|
|
Loading…
Reference in New Issue