mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: check null on turnCredentials when leaving session
parent
e6a495f2a4
commit
31464df41b
|
@ -227,7 +227,8 @@ public class KurentoSessionManager extends SessionManager {
|
||||||
Participant p = sessionidParticipantpublicidParticipant.get(sessionId)
|
Participant p = sessionidParticipantpublicidParticipant.get(sessionId)
|
||||||
.remove(participant.getParticipantPublicId());
|
.remove(participant.getParticipantPublicId());
|
||||||
|
|
||||||
if (p != null && this.openviduConfig.isTurnadminAvailable()) {
|
if (p != null && p.getToken() != null && p.getToken().getTurnCredentials() != null
|
||||||
|
&& this.openviduConfig.isTurnadminAvailable()) {
|
||||||
this.coturnCredentialsService.deleteUser(p.getToken().getTurnCredentials().getUsername());
|
this.coturnCredentialsService.deleteUser(p.getToken().getTurnCredentials().getUsername());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue