]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4067
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 4 Apr 2012 18:52:54 +0000 (13:52 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 4 Apr 2012 18:53:04 +0000 (13:53 -0500)
src/mod/applications/mod_esf/mod_esf.c

index 39952f2a8cb60b3fde46fdbc4f6f15ec50826571..5dd47825195014d8518f7304fe9b04143157a616 100644 (file)
@@ -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);