update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6758 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
41550d54df
commit
793eb2d0ef
|
@ -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)
|
||||||
port = 0;
|
port = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
end:
|
|
||||||
switch_mutex_unlock(port_lock);
|
switch_mutex_unlock(port_lock);
|
||||||
return port;
|
return port;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue