diff options
Diffstat (limited to 'src/afb-svc.c')
-rw-r--r-- | src/afb-svc.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/afb-svc.c b/src/afb-svc.c index b4032e32..b492520c 100644 --- a/src/afb-svc.c +++ b/src/afb-svc.c @@ -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; |