aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala/src
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2018-01-30 17:29:54 +0100
committerfiaxh <git@mx.ax.lt>2018-01-30 17:29:54 +0100
commitef40b617349f49f3f7543b4647bb142590773bc5 (patch)
treeb3d608d9179787deb0424d530309788b74c41f20 /xmpp-vala/src
parent8c46c423c09d2a2bb50f086414d2fb373b3a64c9 (diff)
downloaddino-ef40b617349f49f3f7543b4647bb142590773bc5.tar.gz
dino-ef40b617349f49f3f7543b4647bb142590773bc5.zip
Small fixes
Diffstat (limited to 'xmpp-vala/src')
-rw-r--r--xmpp-vala/src/module/util.vala5
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");
}