diff options
author | fiaxh <git@mx.ax.lt> | 2018-01-30 17:29:54 +0100 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2018-01-30 17:29:54 +0100 |
commit | ef40b617349f49f3f7543b4647bb142590773bc5 (patch) | |
tree | b3d608d9179787deb0424d530309788b74c41f20 /xmpp-vala/src/module | |
parent | 8c46c423c09d2a2bb50f086414d2fb373b3a64c9 (diff) | |
download | dino-ef40b617349f49f3f7543b4647bb142590773bc5.tar.gz dino-ef40b617349f49f3f7543b4647bb142590773bc5.zip |
Small fixes
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"); } |