Solved timeout problem in plugin modules

(cherry picked from commit 110b15e528)
This commit is contained in:
fermin831 2015-09-03 12:31:53 +02:00
parent e2a31bc538
commit cd27e2dc91
1 changed files with 22 additions and 19 deletions

View File

@ -1143,6 +1143,9 @@ Pandora_Module_Factory::getModuleFromDefinition (string definition) {
module = new Pandora_Module_Regexp (module_name, module_regexp, module_pattern, (unsigned char) atoi (module_noseekeof.c_str ()));
} else if (module_plugin != "") {
module = new Pandora_Module_Plugin (module_name, module_plugin);
if (module_timeout != ""){
module->setTimeout(atoi(module_timeout.c_str()));
}
} else if (module_ping != "") {
if (module_ping_count == "") {
module_ping_count = "1";