From fc0da145ff8e9b8cea1c40fa3025596fb8ffaae8 Mon Sep 17 00:00:00 2001 From: José Bollo Date: Wed, 23 Mar 2016 13:07:00 +0100 Subject: rest-api: allow zero plugin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I80c88204a9b953bb3f1ba615fdd19d8ebb1fb30b Signed-off-by: José Bollo --- src/rest-api.c | 5 ----- 1 file changed, 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; -- cgit 1.2.3-korg