From 1b14c58aea7a30974da7163d9b1300150925af04 Mon Sep 17 00:00:00 2001 From: Brian West Date: Mon, 22 Jun 2009 18:55:15 +0000 Subject: [PATCH] MODAPP-287 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13897 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_fifo/mod_fifo.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mod/applications/mod_fifo/mod_fifo.c b/src/mod/applications/mod_fifo/mod_fifo.c index 3d475271d4..6d7dd9eae9 100644 --- a/src/mod/applications/mod_fifo/mod_fifo.c +++ b/src/mod/applications/mod_fifo/mod_fifo.c @@ -790,6 +790,11 @@ SWITCH_STANDARD_APP(fifo_function) } node_list[node_count++] = node; } + + if(switch_true(switch_channel_get_variable(channel, "fifo_destroy_after_use"))) { + node->ready = FIFO_DELAY_DESTROY; + } + switch_mutex_unlock(globals.mutex); moh = switch_channel_get_variable(channel, "fifo_music");