summaryrefslogtreecommitdiffstats
path: root/src/aft.c
diff options
context:
space:
mode:
authorFrederic Marec <frederic.marec@iot.bzh>2019-04-09 17:52:22 +0200
committerFrédéric Marec <frederic.marec@iot.bzh>2019-11-26 13:44:25 +0000
commiteb4d2471f1609e217b2a3a919eeb7d76ca1c7417 (patch)
tree0be9335d9d15bce09d1c787abb21d8022e4485db /src/aft.c
parent46d1948f5a4b46d9e2424dd56fede1720167c580 (diff)
Fix event receive Fix event not receive Fix lockwait event Remove trailing indentation Bug-AGL: SPEC-2374 Change-Id: Ie64b23c242bc13dcf7af96ff3ed2316bf6cad5f7 Signed-off-by: Frederic Marec <frederic.marec@iot.bzh> (cherry picked from commit 5c3503e35c1b883e97ed6874f7683d0a7b5938b7)
Diffstat (limited to 'src/aft.c')
-rw-r--r--src/aft.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/aft.c b/src/aft.c
index 7d8af8a..14fb003 100644
--- a/src/aft.c
+++ b/src/aft.c
@@ -39,7 +39,8 @@ static void onTraceEvent(void *closure, const char *event, json_object *data, af
*/
pthread_mutex_lock(&memo_lock);
if(memo_sync) {
- afb_req_reply(memo_sync, json_object_get(data), NULL, event);afb_req_unref(memo_sync);
+ afb_req_reply(memo_sync, json_object_get(data), NULL, event);
+ afb_req_unref(memo_sync);
memo_sync = NULL;
}
pthread_mutex_unlock(&memo_lock);