Skip to content

Commit

Permalink
[fix][client]Fix scheduledExecutorProvider not shutdown (#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 congbobo184 committed Nov 14, 2022
1 parent bcd0b74 commit 4c3e56b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,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 4c3e56b

Please sign in to comment.