提交 30a13ca0 authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-4728 --resolve got it, related to multpile bindings

上级 77eabbbd
......@@ -222,12 +222,15 @@ SWITCH_DECLARE(switch_status_t) switch_xml_unbind_search_function_ptr(switch_xml
switch_thread_rwlock_wrlock(B_RWLOCK);
for (ptr = BINDINGS; ptr; ptr = ptr->next) {
if (ptr->function == function) {
status = SWITCH_STATUS_SUCCESS;
if (last) {
last->next = ptr->next;
} else {
BINDINGS = ptr->next;
last = NULL;
continue;
}
status = SWITCH_STATUS_SUCCESS;
}
last = ptr;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论