[asterisk-commits] russell: branch group/upenn r103720 - /team/group/upenn/res/res_smdi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Feb 15 11:22:52 CST 2008


Author: russell
Date: Fri Feb 15 11:22:52 2008
New Revision: 103720

URL: http://svn.digium.com/view/asterisk?view=rev&rev=103720
Log:
Don't sleep forever waiting for an SMDI message

Modified:
    team/group/upenn/res/res_smdi.c

Modified: team/group/upenn/res/res_smdi.c
URL: http://svn.digium.com/view/asterisk/team/group/upenn/res/res_smdi.c?view=diff&rev=103720&r1=103719&r2=103720
==============================================================================
--- team/group/upenn/res/res_smdi.c (original)
+++ team/group/upenn/res/res_smdi.c Fri Feb 15 11:22:52 2008
@@ -414,7 +414,7 @@
 		/* If there were no messages in the queue, then go to sleep until one
 		 * arrives. */
 
-		ast_cond_wait(&iface->md_q_cond, &iface->md_q_lock);
+		ast_cond_timedwait(&iface->md_q_cond, &iface->md_q_lock, &ts);
 
 		if ((msg = smdi_msg_find(iface, type, station))) {
 			unlock_msg_q(iface, type);




More information about the asterisk-commits mailing list