allow multiple identical events to be queued
authorJohn Crispin <blogic@openwrt.org>
Tue, 2 Jun 2015 00:00:03 +0000 (02:00 +0200)
committerJohn Crispin <blogic@openwrt.org>
Tue, 2 Jun 2015 00:00:03 +0000 (02:00 +0200)
Signed-off-by: John Crispin <blogic@openwrt.org>
service/trigger.c

index ced758b..a8533b3 100644 (file)
@@ -336,7 +336,7 @@ void trigger_event(const char *type, struct blob_attr *data)
        struct trigger *t;
 
        list_for_each_entry(t, &triggers, list) {
        struct trigger *t;
 
        list_for_each_entry(t, &triggers, list) {
-               if (t->pending || t->remove)
+               if (t->remove)
                        continue;
                if (!trigger_match(type, t->type)) {
                        if (t->timeout) {
                        continue;
                if (!trigger_match(type, t->type)) {
                        if (t->timeout) {