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,9 +335,13 @@ public class JDAConnectionManager implements DiscordConnectionManager {
|
||||
}
|
||||
|
||||
private void shutdownExecutors() {
|
||||
if (gatewayPool != null) {
|
||||
gatewayPool.shutdownNow();
|
||||
}
|
||||
if (rateLimitPool != null) {
|
||||
rateLimitPool.shutdownNow();
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Logging
|
||||
|
Loading…
Reference in New Issue
Block a user