mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2024-12-26 17:18:29 +01:00
Move to connecting on thread
This commit is contained in:
parent
51cd79e700
commit
32a2ae0d7b
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user