Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
DefaultMQProducer didn't shutdown completely
  • Loading branch information
coder-zzzz committed Apr 22, 2020
1 parent d1b4e47 commit 55d66ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Expand Up @@ -853,6 +853,7 @@ public void shutdown() {
this.scheduledExecutorService.shutdown();
this.mQClientAPIImpl.shutdown();
this.rebalanceService.shutdown();
this.defaultMQProducer.shutdown();

if (this.datagramSocket != null) {
this.datagramSocket.close();
Expand Down
Expand Up @@ -258,7 +258,7 @@ public void shutdown(final boolean shutdownFactory) {
if (shutdownFactory) {
this.mQClientFactory.shutdown();
}

this.timer.cancel();
log.info("the producer [{}] shutdown OK", this.defaultMQProducer.getProducerGroup());
this.serviceState = ServiceState.SHUTDOWN_ALREADY;
break;
Expand Down

0 comments on commit 55d66ff

Please sign in to comment.