Move to connecting on thread

This commit is contained in:
Vankka 2024-11-10 22:00:36 +02:00
parent 51cd79e700
commit 32a2ae0d7b
No known key found for this signature in database
GPG Key ID: 62E48025ED4E7EBB

View File

@ -293,7 +293,10 @@ public class JDAConnectionManager implements DiscordConnectionManager {
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() {