mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2024-12-27 17:28:23 +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");
|
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() {
|
private void connectInternal() {
|
||||||
|
Loading…
Reference in New Issue
Block a user