From: Anthony Minessale Date: Fri, 16 Sep 2011 16:18:50 +0000 (-0500) Subject: Do not include descriptions on socket shutdowns for failures since they probably... X-Git-Tag: v1.2-rc1~51^2~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=142fa9922cdc0328aa1d4f6d2bda636fe01d79de;p=thirdparty%2Ffreeswitch.git Do not include descriptions on socket shutdowns for failures since they probably will never get it anyway and its in a protected section of code --- diff --git a/src/mod/event_handlers/mod_event_socket/mod_event_socket.c b/src/mod/event_handlers/mod_event_socket/mod_event_socket.c index aaf270cb26..f6ea4735ce 100644 --- a/src/mod/event_handlers/mod_event_socket/mod_event_socket.c +++ b/src/mod/event_handlers/mod_event_socket/mod_event_socket.c @@ -184,7 +184,7 @@ static switch_status_t socket_logger(const switch_log_node_t *node, switch_log_l } else { switch_log_node_free(&dnode); if (++l->lost_logs > MAX_MISSED) { - kill_listener(l, "Disconnected due to log queue failure.\n"); + kill_listener(l, NULL); } } } @@ -384,7 +384,7 @@ static void event_handler(switch_event_t *event) } } else { if (++l->lost_events > MAX_MISSED) { - kill_listener(l, "Disconnected due to event queue failure.\n"); + kill_listener(l, NULL); } switch_event_destroy(&clone); }