Fixed autoupdate errpr

This commit is contained in:
Butzlabben 2019-02-11 16:29:46 +01:00
parent 31a97daf74
commit 21b30d489a
1 changed files with 1 additions and 0 deletions

View File

@ -34,6 +34,7 @@ public class UpdateInformations {
try {
URL url = new URL(URL);
urlConn = url.openConnection();
urlConn.setRequestProperty("User-Agent", "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2");
if (urlConn != null)
urlConn.setReadTimeout(60 * 1000);