]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3809 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 7 May 2012 16:43:39 +0000 (11:43 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 7 May 2012 16:43:39 +0000 (11:43 -0500)
src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c

index 509aec7da4bf06eb177c14e0aa16577d66b5c258..927f30b53442a19105688cf0c936a634fa730e46 100644 (file)
@@ -1807,6 +1807,7 @@ SWITCH_MODULE_RUNTIME_FUNCTION(mod_erlang_event_runtime)
                if ((clientfd = ei_accept_tmo(&ec, (int) listen_list.sockfd, &conn, 500)) == ERL_ERROR) {
                        if (prefs.done) {
                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Shutting Down\n");
+                               break;
                        } else if (erl_errno == ETIMEDOUT) {
                                continue;
 #ifdef WIN32
@@ -1820,9 +1821,8 @@ SWITCH_MODULE_RUNTIME_FUNCTION(mod_erlang_event_runtime)
                                /* if errno didn't get set, assume nothing *too* horrible occured */
                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE,
                                                                  "Ignorable error in ei_accept - probable bad client version, bad cookie or bad nodename\n");
-                               continue;
                        }
-                       break;
+                       continue;
                }
 
                listener = new_listener(&ec, clientfd);