mirror of
https://github.com/qicosmos/rest_rpc.git
synced 2026-08-30 00:50:48 +08:00
fix check reconnect times.
This commit is contained in:
@@ -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_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user