]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
never hurts to be extra careful
authorBrian West <brian@freeswitch.org>
Mon, 9 Feb 2009 16:02:50 +0000 (16:02 +0000)
committerBrian West <brian@freeswitch.org>
Mon, 9 Feb 2009 16:02:50 +0000 (16:02 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11702 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_fifo/mod_fifo.c

index 2ea5ff8ffc126966ebf7284d5b633581bb17b7a6..8d37eb22f0e77577427931b62fc969a89d3e0b2a 100644 (file)
@@ -1929,6 +1929,10 @@ SWITCH_STANDARD_API(fifo_member_api_function)
        int argc;
        time_t expires = 0;
 
+       if (!globals.running) {
+               return SWITCH_STATUS_FALSE;
+       }
+
        if (switch_strlen_zero(cmd)){
                stream->write_function(stream, "-USAGE: %s\n", FIFO_MEMBER_API_SYNTAX);
                return SWITCH_STATUS_SUCCESS;