fixed update error not shown correctly

This commit is contained in:
Jannik 2017-06-01 17:41:06 +02:00
parent 43ef370596
commit 888a2c5014
2 changed files with 3 additions and 2 deletions

Binary file not shown.

View File

@ -49,8 +49,9 @@ public class updater implements Runnable{
apiOutput = ina.readLine(); apiOutput = ina.readLine();
ina.close(); ina.close();
} catch (IOException e1) { } catch (IOException e1) {
mainWindowController.showErrorMsg(mainWindowController.errorUpdateV, e1); Platform.runLater(() -> {
e1.printStackTrace(); mainWindowController.showErrorMsg(mainWindowController.errorUpdateV, e1);
});
} }
JsonObject object = Json.parse(apiOutput).asObject(); JsonObject object = Json.parse(apiOutput).asObject();