diff options
Diffstat (limited to 'src/jrummikub/util/Event.java')
-rw-r--r-- | src/jrummikub/util/Event.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jrummikub/util/Event.java b/src/jrummikub/util/Event.java index aa491da..6d9522b 100644 --- a/src/jrummikub/util/Event.java +++ b/src/jrummikub/util/Event.java @@ -25,7 +25,7 @@ public class Event implements IEvent { /** Generate a single event */ public void emit() { - for (IListener listener : listeners) { + for (IListener listener : new HashSet<IListener>(listeners)) { listener.handle(); } } |