Fix false error message on DAHDI_EVENT_REMOVED (RESULT_SUCCESS == 0)
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>
Tue, 15 Sep 2009 10:24:55 +0000 (10:24 +0000)
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>
Tue, 15 Sep 2009 10:24:55 +0000 (10:24 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@218465 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_dahdi.c

index 187004e..1c84511 100644 (file)
@@ -10250,7 +10250,7 @@ static void *do_monitor(void *data)
                        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;