1
0
mirror of https://github.com/moparisthebest/davmail synced 2025-02-28 09:21:49 -05:00

Fix bug 2797272: Add disable update check

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@580 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2009-06-09 19:50:13 +00:00
parent 3b2d225412
commit d8eaa3bc0c

View File

@ -152,6 +152,7 @@ public class DavGateway {
public static String getReleasedVersion() {
String version = null;
if (!Settings.getBooleanProperty("davmail.disableUpdateCheck")) {
BufferedReader versionReader = null;
HttpClient httpClient = DavGatewayHttpClientFacade.getInstance();
GetMethod getMethod = new GetMethod(HTTP_DAVMAIL_SOURCEFORGE_NET_VERSION_TXT);
@ -174,6 +175,7 @@ public class DavGateway {
}
getMethod.releaseConnection();
}
}
return version;
}
}