We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a91c62 commit cf594b7Copy full SHA for cf594b7
1 file changed
src/cluster.cpp
@@ -454,9 +454,10 @@ void Cluster::on_reconnect(ControlConnector* connector) {
454
455
void Cluster::internal_close() {
456
is_closing_ = true;
457
+ bool was_timer_running = timer_.is_running();
458
+ timer_.stop();
459
monitor_reporting_timer_.stop();
- if (timer_.is_running()) {
- timer_.stop();
460
+ if (was_timer_running) {
461
handle_close();
462
} else if (reconnector_) {
463
reconnector_->cancel();
0 commit comments