X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fdaemon%2Fplugin.c;h=831e3fb0311398c5c1b75cddc67b5e5d4b2b8c0e;hb=0c5e4282f0f4e332499feac3b07ce0f29e3d2b1c;hp=b57dd4a21281a486b3356fe863aeec3fbebc305a;hpb=06d15fe3e9c6d6cd72fb97643b29c4be344c0117;p=collectd.git diff --git a/src/daemon/plugin.c b/src/daemon/plugin.c index b57dd4a2..831e3fb0 100644 --- a/src/daemon/plugin.c +++ b/src/daemon/plugin.c @@ -1725,8 +1725,6 @@ void plugin_init_all (void) write_threads_num = 5; } - start_write_threads ((size_t) write_threads_num); - if ((list_init == NULL) && (read_heap == NULL)) return; @@ -1762,6 +1760,8 @@ void plugin_init_all (void) le = le->next; } + start_write_threads ((size_t) write_threads_num); + max_read_interval = global_option_get_time ("MaxReadInterval", DEFAULT_MAX_READ_INTERVAL);