Never destroy channel when there is an owner
authorMark Spencer <markster@digium.com>
Tue, 20 Jul 2004 15:29:09 +0000 (15:29 +0000)
committerMark Spencer <markster@digium.com>
Tue, 20 Jul 2004 15:29:09 +0000 (15:29 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3484 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 1f3dcec..d780bf6 100755 (executable)
@@ -7535,7 +7535,7 @@ restartsearch:
                                        }
                                }
                        }
-                       if (sip->needdestroy && !sip->packets) {
+                       if (sip->needdestroy && !sip->packets && !sip->owner) {
                                ast_mutex_unlock(&sip->lock);
                                __sip_destroy(sip, 1);
                                goto restartsearch;