Browse code

Merge 04f30dce5f161ab3984cbace99779871e3e5ea1f into 97f5f77f2d003a5e32e39aacf8182787a2c83a43

Stefan Mititelu authored on 20/10/2021 13:25:51 • GitHub committed on 20/10/2021 13:25:51
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
 		}