summaryrefslogtreecommitdiff
path: root/channels/chan_dahdi.c
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-09-15 10:24:55 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-09-15 10:24:55 +0000
commitb64beef2f389f6c063174c285efb2986f1aea22d (patch)
tree99902be4f15255e956e92b056bc79c276baa80f4 /channels/chan_dahdi.c
parent843a72437301e5bde426e1b97717f1da5716a3ab (diff)
Fix false error message on DAHDI_EVENT_REMOVED (RESULT_SUCCESS == 0)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@218465 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_dahdi.c')
-rw-r--r--channels/chan_dahdi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index 187004ef8..1c84511df 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;