mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2024-11-01 08:39:31 +01:00
Null-check executors in JDAConnectionManager#shutdownExecutors
This commit is contained in:
parent
81569c5ba8
commit
b63be457fd
@ -335,9 +335,13 @@ public class JDAConnectionManager implements DiscordConnectionManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void shutdownExecutors() {
|
private void shutdownExecutors() {
|
||||||
|
if (gatewayPool != null) {
|
||||||
gatewayPool.shutdownNow();
|
gatewayPool.shutdownNow();
|
||||||
|
}
|
||||||
|
if (rateLimitPool != null) {
|
||||||
rateLimitPool.shutdownNow();
|
rateLimitPool.shutdownNow();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Logging
|
// Logging
|
||||||
|
Loading…
Reference in New Issue
Block a user