diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-08-23 18:45:09 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2017-08-23 18:58:03 +0200 |
commit | ffb6113d265615cf18d2348769403d727e9a1484 (patch) | |
tree | f7eb25bbd4bd18902cd2858eded43f9ce0deb75a | |
parent | 017a0f3080978c1de1c1ed2342c10878be1614aa (diff) |
afb-monitor: update hooks for tracing
Updating hooks is needed (at the moment) after trace requests
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r-- | src/afb-monitor.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/afb-monitor.c b/src/afb-monitor.c index 369c5bf5..4bedc49d 100644 --- a/src/afb-monitor.c +++ b/src/afb-monitor.c @@ -345,13 +345,15 @@ static void f_trace(struct afb_req req) if (add) { rc = afb_trace_add(req, add, trace); if (rc) - return; + goto end; } if (drop) { rc = afb_trace_drop(req, drop, trace); if (rc) - return; + goto end; } afb_req_success(req, NULL, NULL); +end: + afb_apiset_update_hooks(main_apiset, NULL); } |