From edc3defbf5825e07d9cbebe64a487f9d44dad8a2 Mon Sep 17 00:00:00 2001 From: qicosmos <383121719@qq.com> Date: Fri, 21 Aug 2020 09:42:14 +0800 Subject: [PATCH] fix check reconnect times. --- include/rpc_client.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/rpc_client.hpp b/include/rpc_client.hpp index cb8883e..ea71d92 100644 --- a/include/rpc_client.hpp +++ b/include/rpc_client.hpp @@ -340,7 +340,7 @@ namespace rest_rpc { has_connected_ = false; - if (reconnect_cnt_ == 0) { + if (reconnect_cnt_ <= 0) { return; } @@ -793,4 +793,4 @@ namespace rest_rpc { std::unordered_map> sub_map_; std::set> key_token_set_; }; -} \ No newline at end of file +}