From cb18f3deead1be2920aa15cff8cd661cae269829 Mon Sep 17 00:00:00 2001 From: Jonathan Aillet Date: Fri, 1 Jun 2018 23:57:09 +0200 Subject: 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 --- 4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '4a-hal') 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; } -- cgit 1.2.3-korg