From b5eec63e07bf81fac22bea9c89a031c0be6aa9fb Mon Sep 17 00:00:00 2001 From: David Rose Date: Sat, 20 Jun 2009 01:27:02 +0000 Subject: [PATCH] proper return values from download_to_X --- panda/src/downloader/httpChannel.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/panda/src/downloader/httpChannel.cxx b/panda/src/downloader/httpChannel.cxx index 42f6abc27e..861056c634 100644 --- a/panda/src/downloader/httpChannel.cxx +++ b/panda/src/downloader/httpChannel.cxx @@ -646,7 +646,7 @@ download_to_file(const Filename &filename, bool subdocument_resumes) { while (run()) { } - return is_download_complete(); + return is_download_complete() && is_valid(); } //////////////////////////////////////////////////////////////////// @@ -703,7 +703,7 @@ download_to_ram(Ramfile *ramfile, bool subdocument_resumes) { while (run()) { } - return is_download_complete(); + return is_download_complete() && is_valid(); } //////////////////////////////////////////////////////////////////// @@ -763,7 +763,7 @@ download_to_stream(ostream *strm, bool subdocument_resumes) { while (run()) { } - return is_download_complete(); + return is_download_complete() && is_valid(); } ////////////////////////////////////////////////////////////////////