FS-4728 --resolve got it, related to multpile bindings
This commit is contained in:
parent
77eabbbdf7
commit
30a13ca0c6
|
@ -222,12 +222,15 @@ SWITCH_DECLARE(switch_status_t) switch_xml_unbind_search_function_ptr(switch_xml
|
||||||
switch_thread_rwlock_wrlock(B_RWLOCK);
|
switch_thread_rwlock_wrlock(B_RWLOCK);
|
||||||
for (ptr = BINDINGS; ptr; ptr = ptr->next) {
|
for (ptr = BINDINGS; ptr; ptr = ptr->next) {
|
||||||
if (ptr->function == function) {
|
if (ptr->function == function) {
|
||||||
|
status = SWITCH_STATUS_SUCCESS;
|
||||||
|
|
||||||
if (last) {
|
if (last) {
|
||||||
last->next = ptr->next;
|
last->next = ptr->next;
|
||||||
} else {
|
} else {
|
||||||
BINDINGS = ptr->next;
|
BINDINGS = ptr->next;
|
||||||
|
last = NULL;
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
status = SWITCH_STATUS_SUCCESS;
|
|
||||||
}
|
}
|
||||||
last = ptr;
|
last = ptr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue