Skip to content

Commit 4712d97

Browse files
committed
fix: max retry count
1 parent 41c63bf commit 4712d97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

event/hloop.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ HV_INLINE void reconn_setting_reset(reconn_setting_t* reconn) {
640640
HV_INLINE bool reconn_setting_can_retry(reconn_setting_t* reconn) {
641641
++reconn->cur_retry_cnt;
642642
return reconn->max_retry_cnt == INFINITE ||
643-
reconn->cur_retry_cnt < reconn->max_retry_cnt;
643+
reconn->cur_retry_cnt <= reconn->max_retry_cnt;
644644
}
645645

646646
HV_INLINE uint32_t reconn_setting_calc_delay(reconn_setting_t* reconn) {

0 commit comments

Comments
 (0)