Improved AutoUpdater error handling and made it more robust

This commit is contained in:
Dylan K. Taylor
2017-06-11 18:41:18 +01:00
parent 4341fb8347
commit 487233a101
2 changed files with 15 additions and 12 deletions

View File

@ -164,7 +164,7 @@ class AutoUpdater{
*/
public function getChannel(){
$channel = strtolower($this->server->getProperty("auto-updater.preferred-channel", "stable"));
if($channel !== "stable" and $channel !== "beta" and $channel !== "development"){
if($channel !== "stable" and $channel !== "beta" and $channel !== "alpha" and $channel !== "development"){
$channel = "stable";
}