mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2024-10-31 08:32:18 +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