mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-31 15:44:21 +00:00
fix lost bindings when list
This commit is contained in:
1 parent
210e501782
commit
9c1c911648
1 file changed
+1
-2
@@ -1720,8 +1720,7 @@ SWITCH_STANDARD_API(erlang_cmd)
|
||||
} else if (!strcasecmp(argv[0], "bindings")) {
|
||||
int found = 0;
|
||||
struct erlang_binding *ptr;
|
||||
switch_thread_rwlock_wrlock(globals.bindings_rwlock);
|
||||
switch_xml_set_binding_sections(bindings.search_binding, SWITCH_XML_SECTION_MAX);
|
||||
switch_thread_rwlock_rdlock(globals.bindings_rwlock);
|
||||
|
||||
for (ptr = bindings.head; ptr; ptr = ptr->next) {
|
||||
|
||||
|
||||
Reference in new issue
Block a user