提交 793eb2d0 authored 作者: Anthony Minessale's avatar Anthony Minessale

update

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6758 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 41550d54
...@@ -335,8 +335,7 @@ SWITCH_DECLARE(switch_port_t) switch_rtp_request_port(const char *ip) ...@@ -335,8 +335,7 @@ SWITCH_DECLARE(switch_port_t) switch_rtp_request_port(const char *ip)
alloc = switch_core_hash_find(alloc_hash, ip); alloc = switch_core_hash_find(alloc_hash, ip);
if (!alloc) { if (!alloc) {
if (switch_core_port_allocator_new(START_PORT, END_PORT, SPF_EVEN, &alloc) != SWITCH_STATUS_SUCCESS) { if (switch_core_port_allocator_new(START_PORT, END_PORT, SPF_EVEN, &alloc) != SWITCH_STATUS_SUCCESS) {
port = 0; abort();
goto end;
} }
switch_core_hash_insert(alloc_hash, ip, alloc); switch_core_hash_insert(alloc_hash, ip, alloc);
...@@ -346,7 +345,6 @@ SWITCH_DECLARE(switch_port_t) switch_rtp_request_port(const char *ip) ...@@ -346,7 +345,6 @@ SWITCH_DECLARE(switch_port_t) switch_rtp_request_port(const char *ip)
port = 0; port = 0;
} }
end:
switch_mutex_unlock(port_lock); switch_mutex_unlock(port_lock);
return port; return port;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论