diff --git a/etc/inc/util.inc b/etc/inc/util.inc index 70b862c47e..7dfdf8d189 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -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) {