Bindings V1: allows to receive event
[src/app-framework-binder.git] / src / afb-svc.c
index b4032e3..b492520 100644 (file)
@@ -194,9 +194,11 @@ struct afb_svc *afb_svc_create_v1(
        }
 
        /* initialises the svc now */
-       rc = start(to_afb_service(svc));
-       if (rc < 0)
-               goto error;
+       if (start) {
+               rc = start(to_afb_service(svc));
+               if (rc < 0)
+                       goto error;
+       }
 
        return svc;