mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-03 20:14:24 +02:00
Livestatus\Connection: make use of socketError
This commit is contained in:
parent
d66c95a725
commit
a027efc9e7
@ -250,9 +250,9 @@ class Connection
|
|||||||
|
|
||||||
protected function writeToSocket($data)
|
protected function writeToSocket($data)
|
||||||
{
|
{
|
||||||
$res = socket_write($this->connection, $data);
|
$res = @socket_write($this->getConnection(), $data);
|
||||||
if ($res === false) {
|
if ($res === false) {
|
||||||
throw new IcingaException('Writing to livestatus socket failed');
|
$this->socketError('Writing to livestatus socket failed');
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user