git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6758 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2007-12-13 17:25:33 +00:00
parent 41550d54df
commit 793eb2d0ef
1 changed files with 1 additions and 3 deletions

View File

@ -335,8 +335,7 @@ SWITCH_DECLARE(switch_port_t) switch_rtp_request_port(const char *ip)
alloc = switch_core_hash_find(alloc_hash, ip);
if (!alloc) {
if (switch_core_port_allocator_new(START_PORT, END_PORT, SPF_EVEN, &alloc) != SWITCH_STATUS_SUCCESS) {
port = 0;
goto end;
abort();
}
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;
}
end:
switch_mutex_unlock(port_lock);
return port;
}