Use a simple HashSet for our listener set since we don't need the

overhead of the CoWASet
This commit is contained in:
Jesse Vincent 2010-07-16 00:38:32 +00:00
parent 19ca87a2d5
commit b21120405e
1 changed files with 1 additions and 1 deletions

View File

@ -364,7 +364,7 @@ public class MessagingController implements Runnable
return mListeners;
}
Set<MessagingListener> listeners = new CopyOnWriteArraySet<MessagingListener>(mListeners);
Set<MessagingListener> listeners = new HashSet<MessagingListener>(mListeners);
listeners.add(listener);
return listeners;