Code

Merge branch 'collectd-5.4' into collectd-5.5
[collectd.git] / src / daemon / plugin.c
index 3da8eccbb3b2b147f8042c866ded54ee788fe127..e7d4e8df2c801b7e6d0a0e6a8bdd4e120cedbf20 100644 (file)
@@ -1613,8 +1613,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;
 
@@ -1650,6 +1648,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);