[Freeswitch-svn] [commit] r11702 - freeswitch/trunk/src/mod/applications/mod_fifo

FreeSWITCH SVN brian at freeswitch.org
Mon Feb 9 08:02:50 PST 2009


Author: brian
Date: Mon Feb  9 10:02:50 2009
New Revision: 11702

Log:
never hurts to be extra careful

Modified:
   freeswitch/trunk/src/mod/applications/mod_fifo/mod_fifo.c

Modified: freeswitch/trunk/src/mod/applications/mod_fifo/mod_fifo.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_fifo/mod_fifo.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_fifo/mod_fifo.c	Mon Feb  9 10:02:50 2009
@@ -1929,6 +1929,10 @@
 	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;



More information about the Freeswitch-svn mailing list