diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-03-23 13:07:00 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-03-23 13:18:24 +0100 |
commit | fc0da145ff8e9b8cea1c40fa3025596fb8ffaae8 (patch) | |
tree | 5e42fe6304b659bb873a860d502ec4ec2a57281f | |
parent | bf904980ffbf712b53b0684adf90a1428d8e62ff (diff) |
rest-api: allow zero plugin
Change-Id: I80c88204a9b953bb3f1ba615fdd19d8ebb1fb30b
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r-- | src/rest-api.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/rest-api.c b/src/rest-api.c index 643acb57..a62a88bd 100644 --- a/src/rest-api.c +++ b/src/rest-api.c @@ -655,11 +655,6 @@ void initPlugins(AFB_session *session) { close (dirfd); } - if (count == 0) { - fprintf(stderr, "No plugins found, afb-daemon is unlikely to work in this configuration, exiting...\n"); - exit (1); - } - // downsize structure to effective number of loaded plugins plugins = (AFB_plugin **)realloc (plugins, (unsigned)(count+1)*sizeof(AFB_plugin*)); plugins[count] = NULL; |