Archived
14
0
Fork 0

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:
rizzo 2007-07-29 10:49:32 +00:00
parent d26ece9321
commit 3bc3a2126a

View file

@ -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();