[asterisk-commits] mmichelson: branch 1.4 r134475 - /branches/1.4/main/app.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jul 30 13:31:48 CDT 2008


Author: mmichelson
Date: Wed Jul 30 13:31:47 2008
New Revision: 134475

URL: http://svn.digium.com/view/asterisk?view=rev&rev=134475
Log:
Fix a spot where a function could return without bringing
a channel out of autoservice.


Modified:
    branches/1.4/main/app.c

Modified: branches/1.4/main/app.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/app.c?view=diff&rev=134475&r1=134474&r2=134475
==============================================================================
--- branches/1.4/main/app.c (original)
+++ branches/1.4/main/app.c Wed Jul 30 13:31:47 2008
@@ -227,8 +227,12 @@
 		res = ast_waitfor(chan, 100);
 
 	/* ast_waitfor will return the number of remaining ms on success */
-	if (res < 0)
+	if (res < 0) {
+		if (peer) {
+			ast_autoservice_stop(peer);
+		}
 		return res;
+	}
 
 	if (ast_opt_transmit_silence) {
 		silgen = ast_channel_start_silence_generator(chan);




More information about the asterisk-commits mailing list