]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Removed relatedpeer code from sip_autodestruct
authorDavid Vossel <dvossel@digium.com>
Thu, 2 Sep 2010 16:47:15 +0000 (16:47 +0000)
committerDavid Vossel <dvossel@digium.com>
Thu, 2 Sep 2010 16:47:15 +0000 (16:47 +0000)
Handling of the relatedpeer structure associated with a
sip_pvt should be done during the final sip_destruction
function, not in sip_autodestruct.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@284703 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 6865b51e22e89d6d0da418c1255618cec3492eca..62b61722ac3fd17fec7be9b784fe91d39c46f083 100644 (file)
@@ -2173,10 +2173,6 @@ static int __sip_autodestruct(const void *data)
                return 10000;
        }
 
-       /* If we're destroying a subscription, dereference peer object too */
-       if (p->subscribed == MWI_NOTIFICATION && p->relatedpeer)
-               ASTOBJ_UNREF(p->relatedpeer,sip_destroy_peer);
-
        /* Reset schedule ID */
        p->autokillid = -1;