Skip to content

Commit

Permalink
[fix][client]Fix scheduledExecutorProvider not shutdown (apache#17527)
Browse files Browse the repository at this point in the history
* Fix scheduledExecutorProvider not shutdown

* Fix check null

(cherry picked from commit a23963d)
  • Loading branch information
AnonHxy authored and nicoloboschi committed Sep 13, 2022
1 parent 8bd3b7a commit 296f0f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ private void shutdownExecutors() throws PulsarClientException {
}
if (createdScheduledProviders && scheduledExecutorProvider != null && !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 296f0f0

Please sign in to comment.