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:
parent
3b2d225412
commit
d8eaa3bc0c
@ -117,7 +117,7 @@ public class DavGateway {
|
||||
|
||||
String currentVersion = getCurrentVersion();
|
||||
DavGatewayTray.info(new BundleMessage("LOG_DAVMAIL_GATEWAY_LISTENING",
|
||||
currentVersion==null?"":currentVersion, messages));
|
||||
currentVersion == null ? "" : currentVersion, messages));
|
||||
if (!errorMessages.isEmpty()) {
|
||||
DavGatewayTray.error(new BundleMessage("LOG_MESSAGE", errorMessages));
|
||||
}
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user