summaryrefslogtreecommitdiffstats
path: root/service
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-06-02 02:00:03 +0200
committerJohn Crispin <blogic@openwrt.org>2015-06-02 02:00:03 +0200
commit94e7ea8b88cb01192a6fb1f1f6a68ada1356763f (patch)
treeebedb79c7ce2d1f4b854a5fe50f9ed9b959f0708 /service
parenta771644fd3a3ac055ec0c62fbe434aed0df002fe (diff)
downloadunitd-94e7ea8b88cb01192a6fb1f1f6a68ada1356763f.tar
unitd-94e7ea8b88cb01192a6fb1f1f6a68ada1356763f.zip
allow multiple identical events to be queued
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'service')
-rw-r--r--service/trigger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/trigger.c b/service/trigger.c
index ced758b..a8533b3 100644
--- a/service/trigger.c
+++ b/service/trigger.c
@@ -336,7 +336,7 @@ void trigger_event(const char *type, struct blob_attr *data)
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) {