Remove an odd redundant comparison
authorMark Michelson <mmichelson@digium.com>
Thu, 16 Oct 2008 22:30:23 +0000 (22:30 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 16 Oct 2008 22:30:23 +0000 (22:30 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@150253 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index 63e2d10..366f1c7 100644 (file)
@@ -2393,8 +2393,7 @@ static void __attempt_transmit(const void *data)
                                                        send_command(iaxs[callno], AST_FRAME_IAX, IAX_COMMAND_TXREJ, 0, ied.buf, ied.pos, -1);
                                                }
                                        } else if (f->final) {
-                                               if (f->final) 
-                                                       iax2_destroy(callno);
+                                               iax2_destroy(callno);
                                        } else {
                                                if (iaxs[callno]->owner)
                                                        ast_log(LOG_WARNING, "Max retries exceeded to host %s on %s (type = %d, subclass = %d, ts=%d, seqno=%d)\n", ast_inet_ntoa(iaxs[f->callno]->addr.sin_addr),iaxs[f->callno]->owner->name , f->af.frametype, f->af.subclass, f->ts, f->oseqno);