Skip to content

Commit

Permalink
fix check reconnect times.
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos authored Aug 21, 2020
1 parent 896659a commit edc3def
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/rpc_client.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ namespace rest_rpc {

has_connected_ = false;

if (reconnect_cnt_ == 0) {
if (reconnect_cnt_ <= 0) {
return;
}

Expand Down Expand Up @@ -793,4 +793,4 @@ namespace rest_rpc {
std::unordered_map<std::string, std::function<void(string_view)>> sub_map_;
std::set<std::pair<std::string, std::string>> key_token_set_;
};
}
}

0 comments on commit edc3def

Please sign in to comment.