From 0dd174d7ba8a108848ec175d804be2417b1f0698 Mon Sep 17 00:00:00 2001 From: Josh Tynjala Date: Thu, 9 Jul 2015 16:05:33 -0700 Subject: [PATCH] FeathersSDKManagerMediator: fixed issue where update check would incorrectly suggest that there's an update if using a prerelease version --- source/view/mediators/FeathersSDKManagerMediator.as | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/source/view/mediators/FeathersSDKManagerMediator.as b/source/view/mediators/FeathersSDKManagerMediator.as index d6e30d1..4c0fc2f 100644 --- a/source/view/mediators/FeathersSDKManagerMediator.as +++ b/source/view/mediators/FeathersSDKManagerMediator.as @@ -171,7 +171,14 @@ package view.mediators { var currentPart:int = parseInt(currentVersionParts[i] as String, 10); var latestPart:int = parseInt(latestVersionParts[i] as String, 10); - if(latestPart > currentPart) + if(currentPart > latestPart) + { + //this version is newer than the latest in the configuration + //file. either it's a prerelease version or auto-updates + //haven't been enabled for the latest version yet. + break; + } + else if(currentPart < latestPart) { hasUpdate = true; break;