openvidu-server: extend warn log when client websocket is closed

pull/648/head
pabloFuente 2021-07-08 15:33:15 +02:00
parent 432301e565
commit 9fd690559e
1 changed files with 8 additions and 0 deletions

View File

@ -74,6 +74,14 @@ public class RpcNotificationService {
}
try {
t.sendResponse(result);
} catch (KurentoException e) {
if (e.getCause().getMessage()
.contains("been closed and no method (apart from close()) may be called on a closed session")) {
log.warn("Response couldn't be sent to participant with privateId {}: {}", participantPrivateId,
e.getCause().getMessage());
} else {
log.error("Exception responding to participant ({})", participantPrivateId, e);
}
} catch (Exception e) {
log.error("Exception responding to participant ({})", participantPrivateId, e);
}