mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-25 04:01:55 +00:00
tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8119 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
be63025cac
commit
486fa9eb02
@ -1969,7 +1969,7 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_sofia_shutdown)
|
|||||||
|
|
||||||
while (mod_sofia_globals.threads) {
|
while (mod_sofia_globals.threads) {
|
||||||
switch_yield(1000);
|
switch_yield(1000);
|
||||||
if (++sanity >= 5000) {
|
if (++sanity >= 10000) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2345,7 +2345,7 @@ void sofia_glue_del_profile(sofia_profile_t *profile)
|
|||||||
sofia_profile_t *pptr;
|
sofia_profile_t *pptr;
|
||||||
|
|
||||||
switch_mutex_lock(mod_sofia_globals.hash_mutex);
|
switch_mutex_lock(mod_sofia_globals.hash_mutex);
|
||||||
|
if (mod_sofia_globals.profile_hash) {
|
||||||
for (hi = switch_hash_first(NULL, mod_sofia_globals.profile_hash); hi; hi = switch_hash_next(hi)) {
|
for (hi = switch_hash_first(NULL, mod_sofia_globals.profile_hash); hi; hi = switch_hash_next(hi)) {
|
||||||
switch_hash_this(hi, &var, NULL, &val);
|
switch_hash_this(hi, &var, NULL, &val);
|
||||||
if ((pptr = (sofia_profile_t *) val) && pptr == profile) {
|
if ((pptr = (sofia_profile_t *) val) && pptr == profile) {
|
||||||
@ -2366,7 +2366,7 @@ void sofia_glue_del_profile(sofia_profile_t *profile)
|
|||||||
switch_core_hash_delete(mod_sofia_globals.gateway_hash, gp->register_from);
|
switch_core_hash_delete(mod_sofia_globals.gateway_hash, gp->register_from);
|
||||||
switch_core_hash_delete(mod_sofia_globals.gateway_hash, gp->register_contact);
|
switch_core_hash_delete(mod_sofia_globals.gateway_hash, gp->register_contact);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
switch_mutex_unlock(mod_sofia_globals.hash_mutex);
|
switch_mutex_unlock(mod_sofia_globals.hash_mutex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user