Removes listeners when chat window is disposed.

cusax-fix
Damian Minkov 13 years ago
parent 33be6b2f87
commit 8432f238cc

@ -90,11 +90,12 @@ public Object getDescriptor()
@Override
public void dispose()
{
ChatRoom chatRoom = chatRoomWrapper.getChatRoom();
chatRoom.removeMemberPresenceListener(this);
chatRoom.removePropertyChangeListener(this);
if(ConfigurationUtils.isLeaveChatRoomOnWindowCloseEnabled())
{
ChatRoom chatRoom = chatRoomWrapper.getChatRoom();
chatRoom.removeMemberPresenceListener(this);
chatRoom.removePropertyChangeListener(this);
chatRoom.leave();
}
}

Loading…
Cancel
Save