Corrected comparison between strcmp and 0 so that threads configuration parameter value becomes effective.

This commit is contained in:
vraatikka 2013-08-14 11:25:03 +03:00
parent 2d31d9ff5b
commit eba81f0501

View File

@ -361,10 +361,11 @@ config_threadcount()
static int
handle_global_item(const char *name, const char *value)
{
if (!strcmp(name, "threads") == 0)
if (strcmp(name, "threads") == 0) {
gateway.n_threads = atoi(value);
else
return 0;
} else {
return 0;
}
return 1;
}