summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 45ec808)
raw | patch | inline | side by side (parent: 45ec808)
author | Sebastian Harl <sh@tokkee.org> | |
Wed, 20 Mar 2013 07:16:08 +0000 (00:16 -0700) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Wed, 20 Mar 2013 07:16:08 +0000 (00:16 -0700) |
src/core/plugin.c | patch | blob | history |
diff --git a/src/core/plugin.c b/src/core/plugin.c
index 7a8483f237abb70bc04f5d840e573191fdbd36c4..5df7059e9c6412b1c49bfc49813563a534f7d031 100644 (file)
--- a/src/core/plugin.c
+++ b/src/core/plugin.c
int
sdb_plugin_collector_loop(sdb_plugin_loop_t *loop)
{
- if ((! collector_list) || (! loop))
+ if (! collector_list) {
+ sdb_log(SDB_LOG_WARNING, "plugin: No collectors registered. "
+ "Quiting main loop.");
+ return -1;
+ }
+
+ if (! loop)
return -1;
while (loop->do_loop) {