Fixes #500 - updatePing (#516)

Moved rtime out of the if/else block, this fixes #500.
This commit is contained in:
eezec 2018-02-28 20:15:00 +01:00 committed by Timz99
parent 24717675da
commit 7302e669fd
No known key found for this signature in database
GPG Key ID: 4D8268DC68E8339D
1 changed files with 1 additions and 1 deletions

View File

@ -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.