fix check reconnect times.

This commit is contained in:
qicosmos
2020-08-21 09:42:14 +08:00
committed by GitHub
parent 896659a0c0
commit edc3defbf5
+2 -2
View File
@@ -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<std::string, std::function<void(string_view)>> sub_map_;
std::set<std::pair<std::string, std::string>> key_token_set_;
};
}
}