summaryrefslogtreecommitdiff
path: root/methods
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:52:49 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:52:49 +0000
commite1b96638b32b9770204705a16fe0cbceafb2f1fc (patch)
tree6f5952e9350c84186eb6d279b0e82022d29ec6fc /methods
parentcc2313b74cd33dd79e82c44cd9d3dbbefeb8092d (diff)
downloadapt-e1b96638b32b9770204705a16fe0cbceafb2f1fc.tar.gz
Error handling fix
Author: jgg Date: 1999-02-15 00:26:55 GMT Error handling fix
Diffstat (limited to 'methods')
-rw-r--r--methods/http.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/methods/http.cc b/methods/http.cc
index 033e6283f..b5d26d127 100644
--- a/methods/http.cc
+++ b/methods/http.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: http.cc,v 1.25 1999/02/08 07:30:50 jgg Exp $
+// $Id: http.cc,v 1.26 1999/02/15 00:26:55 jgg Exp $
/* ######################################################################
HTTP Aquire Method - This is the HTTP aquire method for APT.
@@ -448,7 +448,7 @@ bool ServerState::RunData()
while ((Last = Owner->Go(false,this)) == true);
if (Last == false)
return false;
- return true;
+ return !_error->PendingError();
}
// Transfer the block
@@ -490,12 +490,12 @@ bool ServerState::RunData()
continue;
In.Limit(-1);
- return true;
+ return !_error->PendingError();
}
while (Owner->Go(true,this) == true);
}
- return Owner->Flush(this);
+ return Owner->Flush(this) && !_error->PendingError();
}
/*}}}*/
// ServerState::HeaderLine - Process a header line /*{{{*/