diff --git a/openvidu-server/src/main/java/io/openvidu/server/rpc/RpcNotificationService.java b/openvidu-server/src/main/java/io/openvidu/server/rpc/RpcNotificationService.java index f4d5c46b..670f7b67 100644 --- a/openvidu-server/src/main/java/io/openvidu/server/rpc/RpcNotificationService.java +++ b/openvidu-server/src/main/java/io/openvidu/server/rpc/RpcNotificationService.java @@ -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); }