Skip to content

Commit

Permalink
Move to connecting on thread
Browse files Browse the repository at this point in the history
  • Loading branch information
Vankka committed Nov 10, 2024
1 parent 51cd79e commit 32a2ae0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,10 @@ public CompletableFuture<Void> connect() {
throw new IllegalStateException("Cannot reconnect, still active");
}

return connectionFuture = discordSRV.scheduler().execute(this::connectInternal);
this.connectInternal();
return CompletableFuture.completedFuture(null);
// TODO: investigate why this is broken
//return connectionFuture = discordSRV.scheduler().execute(this::connectInternal);
}

private void connectInternal() {
Expand Down

0 comments on commit 32a2ae0

Please sign in to comment.