From 176af123d03159df69a6fe75d0322b6297e99834 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 4 Apr 2012 13:52:54 -0500 Subject: [PATCH] FS-4067 --- src/mod/applications/mod_esf/mod_esf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/applications/mod_esf/mod_esf.c b/src/mod/applications/mod_esf/mod_esf.c index 39952f2a8c..5dd4782519 100644 --- a/src/mod/applications/mod_esf/mod_esf.c +++ b/src/mod/applications/mod_esf/mod_esf.c @@ -226,7 +226,7 @@ SWITCH_STANDARD_APP(bcast_function) bytes = 16; switch_socket_sendto(socket, control_packet_addr, 0, (void *) &control_packet, &bytes); - for (;;) { + while (switch_channel_ready(channel)) { status = switch_core_session_read_frame(session, &read_frame, SWITCH_IO_FLAG_NONE, 0);