mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 07:18:15 +00:00
minor simplification of a conditional statement
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@77697 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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 New Issue
Block a user