From 02b92bfa2f616d8c6ecbe3d27d1fcee2757bdf2e Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 15 May 2003 18:24:48 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=1207 --- client/net_xfer.C | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client/net_xfer.C b/client/net_xfer.C index 2a8c1d928a..f8018d0f10 100644 --- a/client/net_xfer.C +++ b/client/net_xfer.C @@ -305,21 +305,21 @@ int NET_XFER_SET::do_select(double& bytes_transferred, timeval& timeout) { for (i=0; iis_connected) { - FD_SET(net_xfers[i]->socket, &write_fds); - } else if (net_xfers[i]->want_download) { + FD_SET(nxp->socket, &write_fds); + } else if (nxp->want_download) { if (bytes_left_down > 0) { - FD_SET(net_xfers[i]->socket, &read_fds); + FD_SET(nxp->socket, &read_fds); } else { if (log_flags.net_xfer_debug) printf("Throttling download\n"); } - } else if (net_xfers[i]->want_upload) { + } else if (nxp->want_upload) { if (bytes_left_up > 0) { - FD_SET(net_xfers[i]->socket, &write_fds); + FD_SET(nxp->socket, &write_fds); } else { if (log_flags.net_xfer_debug) printf("Throttling upload\n"); } } - FD_SET(net_xfers[i]->socket, &error_fds); + FD_SET(nxp->socket, &error_fds); } n = select(FD_SETSIZE, &read_fds, &write_fds, &error_fds, &timeout); if (log_flags.net_xfer_debug) printf("select returned %d\n", n);