Mute error when fsockopen fail to connect to host

This commit is contained in:
Samuel Denis-D'Ortun 2016-05-21 20:34:03 -04:00
parent 24d7fee63e
commit 953a7ddf57
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ class StatusUpdater {
// save response time
$starttime = microtime(true);
$fp = fsockopen ($this->server['ip'], $this->server['port'], $errno, $this->error, 10);
$fp = @fsockopen ($this->server['ip'], $this->server['port'], $errno, $this->error, 10);
$status = ($fp === false) ? false : true;
$this->rtime = (microtime(true) - $starttime);