fix fifo logic bug

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8279 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale committed 2008-05-06 21:43:42 +00:00
1 parent 269fdac157
commit e0e04b9f9c
3 files changed
+4 -3

No files matched your search

+2 -2
View File
@@ -452,7 +452,7 @@ SWITCH_STANDARD_APP(fifo_function)
if (!consumer && node) {
switch_core_session_t *other_session;
switch_channel_t *other_channel;
const char *uuid = strdup(switch_core_session_get_uuid(session));
const char *uuid = switch_core_session_get_uuid(session);
const char *pri;
char tmp[25] = "";
int p = 0;
@@ -510,7 +510,7 @@ SWITCH_STANDARD_APP(fifo_function)
node->start_waiting = switch_timestamp_now();
}
switch_queue_push(node->fifo_list[p], (void *)uuid);
switch_queue_push(node->fifo_list[p], (void *)strdup(uuid));
if (!pri) {
switch_snprintf(tmp, sizeof(tmp), "%d", p);