X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=udp_send.c;h=3f9059bb0b03f81c50ec2ef722e255effd41b1ce;hb=e8089cd5efad59a5eec689117acf563a38b8c6c7;hp=4678e936d620da06d736e779eaff21f1c3383145;hpb=eecc102ad0abeb0335fe994bb72031a15b9090d7;p=paraslash.git diff --git a/udp_send.c b/udp_send.c index 4678e936..3f9059bb 100644 --- a/udp_send.c +++ b/udp_send.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2009 Andre Noll + * Copyright (C) 2005-2010 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -232,8 +232,11 @@ static int udp_com_delete(struct sender_command_data *scd) 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);