From 074918aba65bca4a9f13491d4225b3ee98bc5a23 Mon Sep 17 00:00:00 2001 From: kremsy Date: Sat, 15 Feb 2014 21:40:42 +0100 Subject: [PATCH] small fix --- application/core/Server/Server.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/application/core/Server/Server.php b/application/core/Server/Server.php index 70854a15..290afbd1 100644 --- a/application/core/Server/Server.php +++ b/application/core/Server/Server.php @@ -307,15 +307,15 @@ class Server implements CallbackListener { // Server not yet in given status - Wait for it... $waitBegin = time(); $maxWaitTime = 20; - $lastStatus = $response['Name']; + $lastStatus = $response->name; $this->maniaControl->log("Waiting for server to reach status {$statusCode}..."); $this->maniaControl->log("Current Status: {$lastStatus}"); while($response->code !== 4) { sleep(1); $response = $this->maniaControl->client->getStatus(); - if ($lastStatus !== $response['Name']) { - $this->maniaControl->log("New Status: {$response['Name']}"); - $lastStatus = $response['Name']; + if ($lastStatus !== $response->name) { + $this->maniaControl->log("New Status: {$response->name}"); + $lastStatus = $response->name; } if (time() - $maxWaitTime > $waitBegin) { // It took too long to reach the status