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 +}