To be safe, let's be sure that the "latest" version isn't less than the

one in version.txt.
This commit is contained in:
Andrzej Kapolka
2011-01-05 00:15:27 +00:00
parent c7e7da830a
commit 9577c2127c
@@ -1034,7 +1034,7 @@ public class Application
BufferedReader bin = new BufferedReader(new InputStreamReader(in)); BufferedReader bin = new BufferedReader(new InputStreamReader(in));
for (String[] pair : ConfigUtil.parsePairs(bin, false)) { for (String[] pair : ConfigUtil.parsePairs(bin, false)) {
if (pair[0].equals("version")) { if (pair[0].equals("version")) {
_targetVersion = Long.parseLong(pair[1]); _targetVersion = Math.max(Long.parseLong(pair[1]), _targetVersion);
break; break;
} }
} }