When the off command is executed, the udp sender sends an eof packet
to all configured targets. However, it then continues to send data.
Fix this by returning early in udp_send_fec() if the sender has been
switched off.
static int udp_send_fec(char *buf, size_t len, void *private_data)
{
struct udp_target *ut = private_data;
- int ret = udp_init_session(ut);
+ int ret;
+ if (sender_status == SENDER_OFF)
+ return 0;
+ ret = udp_init_session(ut);
if (ret < 0)
goto fail;
ret = send_queued_chunks(ut->fd, ut->cq, 0);