[asterisk-commits] file: branch file/dialing_api r49490 -
/team/file/dialing_api/main/dial.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Thu Jan 4 12:19:50 MST 2007
Author: file
Date: Thu Jan 4 13:19:49 2007
New Revision: 49490
URL: http://svn.digium.com/view/asterisk?view=rev&rev=49490
Log:
Check whether the thread should be stopped both before and after the waitfor, just to be safe.
Modified:
team/file/dialing_api/main/dial.c
Modified: team/file/dialing_api/main/dial.c
URL: http://svn.digium.com/view/asterisk/team/file/dialing_api/main/dial.c?view=diff&rev=49490&r1=49489&r2=49490
==============================================================================
--- team/file/dialing_api/main/dial.c (original)
+++ team/file/dialing_api/main/dial.c Thu Jan 4 13:19:49 2007
@@ -375,6 +375,10 @@
break;
}
+ /* Just to be safe... */
+ if (dial->thread == AST_PTHREADT_STOP)
+ break;
+
/* Wait for frames from channels */
who = ast_waitfor_n(cs, pos, &timeout);
More information about the asterisk-commits
mailing list