Ticket #927. Increase timeout to gice mpd the time needed to exit gracefully.

This commit is contained in:
Ermal 2010-10-15 14:29:29 +00:00
parent b641a575bf
commit f5ea58da02

View File

@ -844,7 +844,7 @@ function interface_bring_down($interface = "wan", $destroy = false) {
if ($realif == $ppp['if']) {
if (file_exists("{$g['varrun_path']}/{$ifcfg['ipaddr']}_{$interface}.pid")) {
killbypid("{$g['varrun_path']}/{$ifcfg['ipaddr']}_{$interface}.pid");
sleep(2);
sleep(5);
}
unlink_if_exists("{$g['varetc_path']}/mpd_{$interface}.conf");
if (isset($ppp['ondemand']) && !$destroy)