Browse code

rtpengine: Don't recheck node if disabled permanently

Stefan Mititelu authored on 18/10/2021 10:33:53
Showing 1 changed files
... ...
@@ -2707,7 +2707,8 @@ select_node:
2707 2707
 		}
2708 2708
 
2709 2709
 		cp = send_rtpp_command(node, ng_flags.dict, &ret);
2710
-		if (cp == NULL) {
2710
+		/* if node is disabled permanent, don't recheck it later */
2711
+		if (cp == NULL && node->rn_recheck_ticks != RTPENGINE_MAX_RECHECK_TICKS) {
2711 2712
 			node->rn_disabled = 1;
2712 2713
 			node->rn_recheck_ticks = get_ticks() + cfg_get(rtpengine,rtpengine_cfg,rtpengine_disable_tout);
2713 2714
 		}