]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
MODSOFIA-83
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 16 Jul 2010 15:05:12 +0000 (10:05 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 16 Jul 2010 15:05:12 +0000 (10:05 -0500)
src/mod/endpoints/mod_sofia/sofia.c

index ae35a47fb3c257d2180236b4426db318cdfee099..f47711ecb1885d5c34056d51bc55c16f84d4cf19 100644 (file)
@@ -684,6 +684,12 @@ void sofia_event_callback(nua_event_t event,
        int locked = 0;
        int check_destroy = 1;
 
+
+       if (!sofia_test_pflag(profile, PFLAG_RUNNING)) {
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Profile is shutting down.\n");
+               return;
+       }
+
        /* sofia_private will be == &mod_sofia_globals.keep_private whenever a request is done with a new handle that has to be 
          freed whenever the request is done */
        if (nh && sofia_private == &mod_sofia_globals.keep_private) {