Correct send_multiple_events to conform with new check_reload_status behaviour

This commit is contained in:
Ermal 2012-03-03 20:23:57 +00:00
parent bfe407e5a2
commit 6e1f456ffd

View File

@ -166,16 +166,9 @@ function send_multiple_events($cmds) {
if (!is_array($cmds))
return;
$fd = fsockopen($g['event_address']);
if ($fd) {
foreach ($cmds as $cmd) {
fwrite($fd, $cmd);
$resp = fread($fd, 4096);
if ($resp != "OK\n")
log_error("send_event: sent {$cmd} got {$resp}");
}
fclose($fd);
}
foreach ($cmds as $cmd)
send_event($cmd);
}
function refcount_init($reference) {