Skip to content

Commit

Permalink
FeathersSDKManagerMediator: fixed issue where update check would inco…
Browse files Browse the repository at this point in the history
…rrectly suggest that there's an update if using a prerelease version
  • Loading branch information
joshtynjala committed Jul 9, 2015
1 parent 2f1536d commit 0dd174d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion source/view/mediators/FeathersSDKManagerMediator.as
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0dd174d

Please sign in to comment.