]> git.mxchange.org Git - quix0rs-apt-p2p.git/blobdiff - apt_p2p/apt_p2p.py
Sync the AptPackages db after modification, and close when done.
[quix0rs-apt-p2p.git] / apt_p2p / apt_p2p.py
index 41f32d36c2bff611570248a09c7713916e84773c..dfeb3e7b5ef67c05ef9ab3a236acf3e8bd641938 100644 (file)
@@ -102,6 +102,7 @@ class AptP2P(protocol.Factory):
     def stopFactory(self):
         log.msg('Stoppping the main apt_p2p application')
         self.http_server.getHTTPFactory().stopFactory()
+        self.mirrors.cleanup()
         self.stats.save()
         self.db.close()