Skip to content

Commit

Permalink
openvidu-server: remove IllegalStateException string filter for ghost…
Browse files Browse the repository at this point in the history
… participants
  • Loading branch information
pabloFuente committed Sep 28, 2023
1 parent 96907f2 commit 6ae3186
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,8 @@ public void sendNotification(final String participantPrivateId, final String met
participantPrivateId, e.getCause().getMessage());

// TODO: this is an ad-hoc fix to clean any ghost participant of sessions
if (e.getCause().getMessage() != null && e.getCause().getMessage().contains(
"has been closed and no method (apart from close()) may be called on a closed session")) {
log.warn("Removing ghost participant with participant private id {}", participantPrivateId);
this.rpcHandler.leaveRoomAfterConnClosed(participantPrivateId, null);
}
log.warn("Removing ghost participant with participant private id {}", participantPrivateId);
this.rpcHandler.leaveRoomAfterConnClosed(participantPrivateId, null);

} else {
log.error("Exception sending notification '{}': {} to participant with private id {}", method, params,
Expand Down

0 comments on commit 6ae3186

Please sign in to comment.