Null-check executors in JDAConnectionManager#shutdownExecutors

This commit is contained in:
Vankka 2022-03-28 12:43:55 +03:00
parent 81569c5ba8
commit b63be457fd
No known key found for this signature in database
GPG Key ID: 6E50CB7A29B96AD0

View File

@ -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