Commit ac7b8d13 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Don't log an error if a user already left the room while processing a #leaveRoom request.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@325 b35dd754-fafc-0310-a699-88a17e54d16e
parent fc857bd5
......@@ -21,6 +21,7 @@ import org.jivesoftware.util.*;
import org.jivesoftware.messenger.*;
import org.jivesoftware.messenger.auth.UnauthorizedException;
import org.jivesoftware.messenger.user.UserAlreadyExistsException;
import org.jivesoftware.messenger.user.UserNotFoundException;
/**
* Implementation of MUCUser. There will be a MUCUser per user that is connected to one or more
......@@ -419,6 +420,9 @@ public class MUCUserImpl implements MUCUser {
roles.remove(group.toLowerCase());
role.getChatRoom().leaveRoom(role.getNickname());
}
catch (UserNotFoundException e) {
// Do nothing since the users has already left the room
}
catch (Exception e) {
Log.error(e);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment