[asterisk-commits] file: branch file/audiohooks r78636 - /team/file/audiohooks/main/audiohook.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Aug 8 14:03:09 CDT 2007


Author: file
Date: Wed Aug  8 14:03:06 2007
New Revision: 78636

URL: http://svn.digium.com/view/asterisk?view=rev&rev=78636
Log:
Don't wait for the audiohook to be stopped when specifying by source.

Modified:
    team/file/audiohooks/main/audiohook.c

Modified: team/file/audiohooks/main/audiohook.c
URL: http://svn.digium.com/view/asterisk/team/file/audiohooks/main/audiohook.c?view=diff&rev=78636&r1=78635&r2=78636
==============================================================================
--- team/file/audiohooks/main/audiohook.c (original)
+++ team/file/audiohooks/main/audiohook.c Wed Aug  8 14:03:06 2007
@@ -429,11 +429,8 @@
 
 	ast_channel_unlock(chan);
 
-	if (audiohook && audiohook->status != AST_AUDIOHOOK_STATUS_DONE) {
+	if (audiohook && audiohook->status != AST_AUDIOHOOK_STATUS_DONE)
 		audiohook->status = AST_AUDIOHOOK_STATUS_SHUTDOWN;
-		while (audiohook->status != AST_AUDIOHOOK_STATUS_DONE)
-			ast_audiohook_trigger_wait(audiohook);
-	}
 
 	return (audiohook ? 0 : -1);
 }




More information about the asterisk-commits mailing list