aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--alsa-hook/PolicyAlsaHook.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/alsa-hook/PolicyAlsaHook.c b/alsa-hook/PolicyAlsaHook.c
index 5e63825..3fbf40e 100644
--- a/alsa-hook/PolicyAlsaHook.c
+++ b/alsa-hook/PolicyAlsaHook.c
@@ -149,9 +149,10 @@ void OnEventCB(void *handle, const char *event, int evtid, struct json_object *d
if (done) {
const char *value=json_object_get_string(tmpJ);
if (!strcmp(afbEvent[index]->value, value)) {
- if (afbEvent[index]->signal)
+ if (afbEvent[index]->signal) {
if (afbClient->verbose) printf("ON-EVENT search=%s value=%s signal=%d\n", afbEvent[index]->search, value, afbEvent[index]->signal);
if (afbEvent[index]->signal) kill (getpid(), afbEvent[index]->signal);
+ }
}
}
}