Commit bfbbb8e3 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Fixed concurrency problem. JM-455

git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@3035 b35dd754-fafc-0310-a699-88a17e54d16e
parent cd2708f6
......@@ -186,7 +186,7 @@ public class HistoryStrategy {
* @return An iterator of Message objects to be sent to the new room member.
*/
public Iterator getMessageHistory(){
LinkedList list = new LinkedList(history);
LinkedList list = (LinkedList) history.clone();
return list.iterator();
}
......@@ -198,7 +198,7 @@ public class HistoryStrategy {
* @return A list iterator of Message objects positioned at the end of the list.
*/
public ListIterator getReverseMessageHistory(){
LinkedList list = new LinkedList(history);
LinkedList list = (LinkedList) history.clone();
return list.listIterator(list.size());
}
......
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