Don't get stuck in loop
authorMark Spencer <markster@digium.com>
Mon, 2 Feb 2004 23:51:25 +0000 (23:51 +0000)
committerMark Spencer <markster@digium.com>
Mon, 2 Feb 2004 23:51:25 +0000 (23:51 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2117 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 0fb5c5a..873bc1d 100755 (executable)
@@ -5716,6 +5716,7 @@ static void *do_monitor(void *data)
                /* Check for a reload request */
                ast_mutex_lock(&sip_reload_lock);
                reloading = sip_reloading;
+               sip_reloading = 0;
                ast_mutex_unlock(&sip_reload_lock);
                if (reloading) {
                        if (option_verbose > 0)
@@ -6722,7 +6723,6 @@ static int sip_do_reload(void)
 
        prune_peers();
        /* And start the monitor for the first time */
-       restart_monitor();
        ast_mutex_lock(&regl.lock);
        for (reg = regl.registrations; reg; reg = reg->next) 
                __sip_do_register(reg);