]> git.saurik.com Git - apt.git/blobdiff - methods/server.cc
refactor plus/minus sources.list option handling
[apt.git] / methods / server.cc
index d606f26aa0408fb38ed52420eee19fbdd8d66f8d..5ab97a66037c1dcc8f56a6d6d1a45b4a03eadb85 100644 (file)
@@ -10,7 +10,6 @@
 // Include Files                                                       /*{{{*/
 #include <config.h>
 
-#include <apt-pkg/acquire-method.h>
 #include <apt-pkg/configuration.h>
 #include <apt-pkg/error.h>
 #include <apt-pkg/fileutl.h>
@@ -557,6 +556,7 @@ int ServerMethod::Loop()
         {
            _error->Error(_("Bad header data"));
            Fail(true);
+           Server->Close();
            RotateDNS();
            continue;
         }