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;
|
String sessionId;
|
||||||
if (sessionProperties.customSessionId() != null && !sessionProperties.customSessionId().isEmpty()) {
|
if (sessionProperties.customSessionId() != null && !sessionProperties.customSessionId().isEmpty()) {
|
||||||
if (sessionManager.getSessionWithNotActive(sessionProperties.customSessionId()) != null) {
|
if (sessionManager.getSessionWithNotActive(sessionProperties.customSessionId()) != null) {
|
||||||
|
log.warn("Session {} is already created", sessionProperties.customSessionId());
|
||||||
return new ResponseEntity<>(HttpStatus.CONFLICT);
|
return new ResponseEntity<>(HttpStatus.CONFLICT);
|
||||||
}
|
}
|
||||||
sessionId = sessionProperties.customSessionId();
|
sessionId = sessionProperties.customSessionId();
|
||||||
|
|
Loading…
Reference in New Issue