minor simplification of a conditional statement
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77697 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
d26ece9321
commit
3bc3a2126a
1 changed files with 1 additions and 4 deletions
|
@ -18519,10 +18519,7 @@ static int sip_reload(int fd, int argc, char *argv[])
|
|||
ast_verbose("Previous SIP reload not yet done\n");
|
||||
else {
|
||||
sip_reloading = TRUE;
|
||||
if (fd)
|
||||
sip_reloadreason = CHANNEL_CLI_RELOAD;
|
||||
else
|
||||
sip_reloadreason = CHANNEL_MODULE_RELOAD;
|
||||
sip_reloadreason = fd ? CHANNEL_CLI_RELOAD : CHANNEL_MODULE_RELOAD;
|
||||
}
|
||||
ast_mutex_unlock(&sip_reload_lock);
|
||||
restart_monitor();
|
||||
|
|
Reference in a new issue