提交 42803902 authored 作者: Brian West's avatar Brian West

Merge pull request #556 in FS/freeswitch from…

Merge pull request #556 in FS/freeswitch from ~ZHANGST/freeswitch:bugfix/FS-8341-dirtributor-return-err to master

* commit '4ce46043':
  FS-8341 [mod_distributor] fix gateway choose bug
...@@ -238,6 +238,7 @@ static struct dist_node *find_next(struct dist_list *list, int etotal, char **ex ...@@ -238,6 +238,7 @@ static struct dist_node *find_next(struct dist_list *list, int etotal, char **ex
list->last = -1; list->last = -1;
} }
match = NULL; match = NULL;
matches = 0;
for (np = list->nodes; np; np = np->next) { for (np = list->nodes; np; np = np->next) {
if (np->cur_weight < list->target_weight) { if (np->cur_weight < list->target_weight) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG10, "%s %d/%d\n", np->name, np->cur_weight, list->target_weight); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG10, "%s %d/%d\n", np->name, np->cur_weight, list->target_weight);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论