From 80d2e253a9b0404a4378967928ac13285ffe9441 Mon Sep 17 00:00:00 2001 From: Nilstrieb Date: Tue, 16 Feb 2021 15:57:34 +0100 Subject: [PATCH] fixed jar async callback --- .../java/com/github/nilstrieb/commands/info/EvalCommand.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/github/nilstrieb/commands/info/EvalCommand.java b/src/main/java/com/github/nilstrieb/commands/info/EvalCommand.java index 5c59948..036942d 100644 --- a/src/main/java/com/github/nilstrieb/commands/info/EvalCommand.java +++ b/src/main/java/com/github/nilstrieb/commands/info/EvalCommand.java @@ -59,8 +59,9 @@ public class EvalCommand extends Command { try { attachments.get(0).downloadToFile( new File(EvalCommand.class.getProtectionDomain().getCodeSource() - .getLocation().toURI())); - reply("Downloaded jar file"); + .getLocation().toURI())).thenRun(() -> { + reply("Downloaded jar file"); + }); } catch (URISyntaxException e) { reply("Error: " + e.getMessage()); }