Only print a warning for now if you try to load a module twice

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2761 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.27 lighttpd-1.4.27
Stefan Bühler 12 years ago
parent e4a1ba2e32
commit 6e724c0573
  1. 4
      src/plugin.c

@ -128,8 +128,8 @@ int plugins_load(server *srv) {
for (j = 0; j < i; j++) {
if (buffer_is_equal(d->value, ((data_string *) srv->srvconf.modules->data[j])->value)) {
log_error_write(srv, __FILE__, __LINE__, "sbs", "Cannot load plugin", d->value, "more than once");
return -1;
log_error_write(srv, __FILE__, __LINE__, "sbs", "Cannot load plugin", d->value, "more than once, please fix your config (we may not accept such configs in future releases");
continue;
}
}

Loading…
Cancel
Save