diff options
author | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2018-06-01 23:57:09 +0200 |
---|---|---|
committer | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2018-10-08 15:51:00 +0200 |
commit | cb18f3deead1be2920aa15cff8cd661cae269829 (patch) | |
tree | 3d68c95bbaa910c2ffcdbf9587abeb477a19bf52 /4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c | |
parent | 0c8db50b3bd94eaa2c4a78a3243920654d3d6d64 (diff) |
Correction of list verb when there's no streams
Don't raise an error when list verb is called on a controller hal and
there's no streams registered yet.
Change-Id: Ie4126673f134ced3e93e1111f988923e4bf13e64
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to '4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c')
-rw-r--r-- | 4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c b/4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c index 8e62e3a..7486f89 100644 --- a/4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c +++ b/4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c @@ -183,7 +183,7 @@ void HalCtlsListVerbs(afb_request *request) } if(! currentCtlHalData->ctlHalSpecificData->ctlHalStreamsData.count) { - afb_request_fail(request, "no_data", "Won't be able to respond, no streams found"); + afb_request_success(request, NULL, "No data to answer, no streams found"); return; } |