diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index 187004ef803f2500fad4716e557cea80e61786c7..1c84511dfaca491f54596646e451d537313c627a 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -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;