From 9741027a71a7010decb16be6d1b6fab33a93358b Mon Sep 17 00:00:00 2001 From: kremsy Date: Sun, 16 Apr 2017 15:30:43 +0200 Subject: [PATCH] async filereader removed old test method --- core/Files/AsynchronousFileReader.php | 10 ---------- plugins/MCTeam/Dedimania/DedimaniaPlugin.php | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/core/Files/AsynchronousFileReader.php b/core/Files/AsynchronousFileReader.php index 712077df..1e7ba86e 100644 --- a/core/Files/AsynchronousFileReader.php +++ b/core/Files/AsynchronousFileReader.php @@ -39,16 +39,6 @@ class AsynchronousFileReader implements UsageInformationAble { $this->maniaControl = $maniaControl; } - public static function newRequestTest($url) { - $request = new Request($url); - $request->getOptions()->set(CURLOPT_TIMEOUT, 60)->set(CURLOPT_HEADER, false)// don't display response header - ->set(CURLOPT_CRLF, true)// linux line feed - ->set(CURLOPT_ENCODING, '')// accept encoding - ->set(CURLOPT_USERAGENT, 'ManiaControl v' . ManiaControl::VERSION)// user-agent - ->set(CURLOPT_RETURNTRANSFER, true); // return instead of output content - return $request; - } - /** * Append available Data of active Requests */ diff --git a/plugins/MCTeam/Dedimania/DedimaniaPlugin.php b/plugins/MCTeam/Dedimania/DedimaniaPlugin.php index 5af18ddd..73f67163 100644 --- a/plugins/MCTeam/Dedimania/DedimaniaPlugin.php +++ b/plugins/MCTeam/Dedimania/DedimaniaPlugin.php @@ -169,7 +169,7 @@ class DedimaniaPlugin implements CallbackListener, CommandListener, TimerListene throw new \Exception("No Dedimania Code Specified, check the settings!"); } - $this->request = AsynchronousFileReader::newRequestTest(self::DEDIMANIA_URL); + //$this->request = AsynchronousFileReader::newRequestTest(self::DEDIMANIA_URL); $this->dedimaniaData = new DedimaniaData($serverInfo->login, $dedimaniaCode, $serverInfo->path, $packMask, $serverVersion);