From eab6f0393b28ad19ef766f2cb99bba20c4b533b1 Mon Sep 17 00:00:00 2001 From: Mike Goslin Date: Sat, 16 Dec 2000 02:42:59 +0000 Subject: [PATCH] *** empty log message *** --- panda/src/downloader/downloader.cxx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/panda/src/downloader/downloader.cxx b/panda/src/downloader/downloader.cxx index 67585ea034..bc9e556775 100644 --- a/panda/src/downloader/downloader.cxx +++ b/panda/src/downloader/downloader.cxx @@ -261,6 +261,7 @@ fast_receive(int socket, DownloadStatus *status, int rec_size) { if (ret == 0) { return FR_eof; } else if (ret == -1) { +#if defined(WIN32_VC) int err = WSAGetLastError(); if (err == 0) { if (downloader_cat.is_debug()) @@ -268,17 +269,17 @@ fast_receive(int socket, DownloadStatus *status, int rec_size) { << "Downloader::fast_receive() - recv() error = 0" << endl; return FR_no_data; } else { -#if defined(WIN32_VC) downloader_cat.error() << "Downloader::fast_receive() - recv() error: " << err << endl; -#else - downloader_cat.error() - << "Downloader::fast_receive() - recv() error: " - << errno << endl; -#endif return FR_error; } +#else + downloader_cat.error() + << "Downloader::fast_receive() - recv() error: " + << errno << endl; + return FR_error; +#endif } if (downloader_cat.is_debug()) downloader_cat.debug()