[asterisk-commits] tzafrir: trunk r218465 - /trunk/channels/chan_dahdi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Sep 15 05:24:59 CDT 2009


Author: tzafrir
Date: Tue Sep 15 05:24:55 2009
New Revision: 218465

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=218465
Log:
Fix false error message on DAHDI_EVENT_REMOVED (RESULT_SUCCESS == 0)

Modified:
    trunk/channels/chan_dahdi.c

Modified: trunk/channels/chan_dahdi.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/channels/chan_dahdi.c?view=diff&rev=218465&r1=218464&r2=218465
==============================================================================
--- trunk/channels/chan_dahdi.c (original)
+++ trunk/channels/chan_dahdi.c Tue Sep 15 05:24:55 2009
@@ -10250,7 +10250,7 @@
 			if (doomed) {
 				int res;
 				res = dahdi_destroy_channel_bynum(doomed->channel);
-				if (!res) {
+				if (res != RESULT_SUCCESS) {
 					ast_log(LOG_WARNING, "Couldn't find channel to destroy, hopefully another destroy operation just happened.\n");
 				}
 				doomed = NULL;




More information about the asterisk-commits mailing list