mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 11:42:27 +00:00
automerge commit
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@8675 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -568,17 +568,17 @@ int reload()
|
|||||||
|
|
||||||
int unload_module()
|
int unload_module()
|
||||||
{
|
{
|
||||||
struct feature_pvt *p;
|
struct feature_pvt *p, *prev;
|
||||||
/* First, take us out of the channel loop */
|
/* First, take us out of the channel loop */
|
||||||
ast_cli_unregister(&cli_show_features);
|
ast_cli_unregister(&cli_show_features);
|
||||||
ast_channel_unregister(&features_tech);
|
ast_channel_unregister(&features_tech);
|
||||||
if (!ast_mutex_lock(&featurelock)) {
|
if (!ast_mutex_lock(&featurelock)) {
|
||||||
/* Hangup all interfaces if they have an owner */
|
/* Hangup all interfaces if they have an owner */
|
||||||
p = features;
|
for (p = features; p; p = p->next) {
|
||||||
while(p) {
|
prev = p;
|
||||||
if (p->owner)
|
if (p->owner)
|
||||||
ast_softhangup(p->owner, AST_SOFTHANGUP_APPUNLOAD);
|
ast_softhangup(p->owner, AST_SOFTHANGUP_APPUNLOAD);
|
||||||
p = p->next;
|
free(prev);
|
||||||
}
|
}
|
||||||
features = NULL;
|
features = NULL;
|
||||||
ast_mutex_unlock(&featurelock);
|
ast_mutex_unlock(&featurelock);
|
||||||
|
Reference in New Issue
Block a user