]> git.saurik.com Git - apt.git/blobdiff - methods/http.cc
reorganize server-states resetting in http/https
[apt.git] / methods / http.cc
index 0358b50cd25bc37e0031e30f93e82eeb1e2aaa1d..8d34aa6e3b271e2f2fb7dc698a27bbd4a39bce1c 100644 (file)
@@ -647,6 +647,13 @@ bool HttpServerState::InitHashes(HashStringList const &ExpectedHashes)     /*{{{*/
    return true;
 }
                                                                        /*}}}*/
+void HttpServerState::Reset(bool const Everything)                     /*{{{*/
+{
+   ServerState::Reset(Everything);
+   if (Everything)
+      ServerFd = -1;
+}
+                                                                       /*}}}*/
 
 APT_PURE Hashes * HttpServerState::GetHashes()                         /*{{{*/
 {