Skip to content
This repository was archived by the owner on Dec 1, 2021. It is now read-only.

Commit 6b23781

Browse files
committed
Added synchronicity to scheduler exception handling.
1 parent d30e152 commit 6b23781

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/net/javadiscord/javabot2

1 file changed

+1
-1
lines changed

src/main/java/net/javadiscord/javabot2/Bot.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public static void main(String[] args) {
8686
log.info("Initialized scheduled tasks.");
8787
} catch (SchedulerException e) {
8888
log.error("Could not initialize all scheduled tasks.", e);
89-
api.disconnect();
89+
api.disconnect().join();
9090
}
9191
}
9292

0 commit comments

Comments
 (0)