]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4796 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 6 Nov 2012 14:51:33 +0000 (08:51 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 6 Nov 2012 14:51:38 +0000 (08:51 -0600)
src/mod/endpoints/mod_sofia/sofia.c

index ebc8f2aa6bc2a17d1fcb0c1b884a5d73c014455c..1c14c473d782c6009f90c4a5107055196fe44ff0 100644 (file)
@@ -1502,6 +1502,10 @@ static void our_sofia_event_callback(nua_event_t event,
                                nua_handle_bind(nh, NULL);
                        }
 
+                       if (tech_pvt && (tech_pvt->nh == nh)) {
+                               tech_pvt->nh = NULL;
+                       }
+
                        nua_handle_destroy(nh);
                        nh = NULL;
                }