Call method instead of using duplicate code.

fix-message-formatting
Danny van Heumen 12 years ago
parent 1487da5eda
commit 9715869fba

@ -137,12 +137,7 @@ public ChatRoom createChatRoom(
throws OperationFailedException, throws OperationFailedException,
OperationNotSupportedException OperationNotSupportedException
{ {
if (this.chatRoomCache.containsKey(roomName)) return findOrCreateRoom(roomName);
{
throw new OperationFailedException("room already exists",
OperationFailedException.IDENTIFICATION_CONFLICT);
}
return createLocalChatRoomInstance(roomName);
} }
/** /**

Loading…
Cancel
Save