[Freeswitch-svn] [commit] r10535 - freeswitch/trunk/src

FreeSWITCH SVN anthm at freeswitch.org
Tue Nov 25 11:05:00 PST 2008


Author: anthm
Date: Tue Nov 25 14:05:00 2008
New Revision: 10535

Log:
fix race

Modified:
   freeswitch/trunk/src/switch_core_io.c

Modified: freeswitch/trunk/src/switch_core_io.c
==============================================================================
--- freeswitch/trunk/src/switch_core_io.c	(original)
+++ freeswitch/trunk/src/switch_core_io.c	Tue Nov 25 14:05:00 2008
@@ -166,7 +166,7 @@
 			}
 		}
 		
-		if (!session->read_codec) {
+		if (!SWITCH_READ_ACCEPTABLE(status) || !session->read_codec || !session->read_codec->mutex) {
 			*frame = NULL;
 			return SWITCH_STATUS_FALSE;
 		}



More information about the Freeswitch-svn mailing list