diff options
Diffstat (limited to 'xmpp-vala/src/module')
-rw-r--r-- | xmpp-vala/src/module/util.vala | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/xmpp-vala/src/module/util.vala b/xmpp-vala/src/module/util.vala index 02f391ae..849aeeec 100644 --- a/xmpp-vala/src/module/util.vala +++ b/xmpp-vala/src/module/util.vala @@ -63,16 +63,13 @@ public abstract class ListenerHolder : Object { bool changed = false; Gee.Iterator<OrderedListener> iter = remaining.iterator(); while (iter.has_next()) { - if (!iter.valid) { - iter.next(); - } + iter.next(); OrderedListener l = iter.get(); if (!set_contains_action(remaining, l.after_actions)) { new_list.add(l); iter.remove(); changed = true; } - iter.next(); } if (!changed) error("Can't sort listeners"); } |