diff --git a/bin/application/updater.class b/bin/application/updater.class index f7249c3..74eb3a1 100644 Binary files a/bin/application/updater.class and b/bin/application/updater.class differ diff --git a/src/application/updater.java b/src/application/updater.java index 33d7763..af41994 100644 --- a/src/application/updater.java +++ b/src/application/updater.java @@ -80,14 +80,9 @@ public class updater implements Runnable{ }); System.out.println("update available"); System.out.println("download link: " + browserDownloadUrl); - try { - //get the download-Data URL - URL downloadURL = new URL(browserDownloadUrl); - BufferedReader in = new BufferedReader(new InputStreamReader(downloadURL.openStream())); - String updateDataURL = in.readLine(); - + try { //open new Http connection, ProgressMonitorInputStream for downloading the data - HttpURLConnection conn = (HttpURLConnection) new URL(updateDataURL).openConnection(); + HttpURLConnection conn = (HttpURLConnection) new URL(browserDownloadUrl).openConnection(); ProgressMonitorInputStream pmis = new ProgressMonitorInputStream(null, "Downloading...", conn.getInputStream()); ProgressMonitor pm = pmis.getProgressMonitor(); pm.setMillisToDecideToPopup(0);