async filereader removed old test method

This commit is contained in:
kremsy 2017-04-16 15:30:43 +02:00
parent e2c458c52d
commit 9741027a71
2 changed files with 1 additions and 11 deletions

View File

@ -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
*/

View File

@ -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);