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