mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 11:42:27 +00:00
partial formatting cleanup
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6574 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -774,21 +774,6 @@ static int agent_hangup(struct ast_channel *ast)
|
|||||||
ast_mutex_unlock(&p->chan->lock);
|
ast_mutex_unlock(&p->chan->lock);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#if 0
|
|
||||||
ast_mutex_unlock(&p->lock);
|
|
||||||
/* Release ownership of the agent to other threads (presumably running the login app). */
|
|
||||||
ast_mutex_unlock(&p->app_lock);
|
|
||||||
} else if (p->dead) {
|
|
||||||
/* Go ahead and lose it */
|
|
||||||
ast_mutex_unlock(&p->lock);
|
|
||||||
/* Release ownership of the agent to other threads (presumably running the login app). */
|
|
||||||
ast_mutex_unlock(&p->app_lock);
|
|
||||||
} else {
|
|
||||||
ast_mutex_unlock(&p->lock);
|
|
||||||
/* Release ownership of the agent to other threads (presumably running the login app). */
|
|
||||||
ast_mutex_unlock(&p->app_lock);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
ast_mutex_unlock(&p->lock);
|
ast_mutex_unlock(&p->lock);
|
||||||
ast_device_state_changed("Agent/%s", p->agent);
|
ast_device_state_changed("Agent/%s", p->agent);
|
||||||
|
|
||||||
@@ -2302,7 +2287,6 @@ static void reload_agents(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*--- agent_devicestate: Part of PBX channel interface ---*/
|
/*--- agent_devicestate: Part of PBX channel interface ---*/
|
||||||
static int agent_devicestate(void *data)
|
static int agent_devicestate(void *data)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user