Moved rtime out of the if/else block, this fixes #500.
This commit is contained in:
parent
24717675da
commit
7302e669fd
|
@ -157,11 +157,11 @@ class StatusUpdater {
|
|||
|
||||
socket_send($socket, $package, strLen($package), 0);
|
||||
if (socket_read($socket, 255)) {
|
||||
$this->rtime = microtime(true) - $starttime;
|
||||
$status = true;
|
||||
} else {
|
||||
$status = false;
|
||||
}
|
||||
$this->rtime = microtime(true) - $starttime;
|
||||
socket_close($socket);
|
||||
|
||||
// check if server is available and rerun if asked.
|
||||
|
|
Loading…
Reference in New Issue