Skip to content

Commit

Permalink
Fix scheduledExecutorProvider not shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
AnonHxy authored and Technoboy- committed Sep 8, 2022
1 parent cbe94af commit 5d41763
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -892,9 +892,9 @@ private void shutdownExecutors() throws PulsarClientException {
}
}
}
if (createdScheduledProviders && scheduledExecutorProvider != null && !scheduledExecutorProvider.isShutdown()) {
if (createdScheduledProviders && !scheduledExecutorProvider.isShutdown()) {
try {
externalExecutorProvider.shutdownNow();
scheduledExecutorProvider.shutdownNow();
} catch (Throwable t) {
log.warn("Failed to shutdown scheduledExecutorProvider", t);
pulsarClientException = PulsarClientException.unwrap(t);
Expand Down

0 comments on commit 5d41763

Please sign in to comment.