X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=plugins%2Fradio%2Fradio-api.c;h=919a875f6745832f077ea43b074a1cf7f40520d9;hb=d809e9b8fc03a0a08060034c6ddbd4b4c4176399;hp=b09cea8696e1997bc9d0aa2eef02c68d92194cf0;hpb=da9b5d47f01f786f3170c80724a1a6d8f9b94ebb;p=src%2Fapp-framework-binder.git diff --git a/plugins/radio/radio-api.c b/plugins/radio/radio-api.c index b09cea86..919a875f 100644 --- a/plugins/radio/radio-api.c +++ b/plugins/radio/radio-api.c @@ -17,7 +17,6 @@ */ #include "radio-api.h" -#include "radio-rtlsdr.h" /* ******************************************************** @@ -131,7 +130,8 @@ STATIC json_object* init (AFB_request *request) { /* AFB_SESSION_CHECK */ json_object *jresp; /* create a private client context */ - request->context = initRadioCtx(); + if (!request->context) + request->context = initRadioCtx(); jresp = json_object_new_object(); json_object_object_add(jresp, "info", json_object_new_string ("Radio initialized"));