From 47221bae94362f1a40540cd51d54e91652ec9fca Mon Sep 17 00:00:00 2001 From: rofl0r Date: Sat, 5 Jan 2019 16:44:31 +0000 Subject: [PATCH] properly clean submitted job list after db write --- proxywatchd.py | 1 + 1 file changed, 1 insertion(+) diff --git a/proxywatchd.py b/proxywatchd.py index a8145a9..2485f60 100644 --- a/proxywatchd.py +++ b/proxywatchd.py @@ -158,6 +158,7 @@ class Proxywatchd(): for job in self.collected: self.mysqlite.execute(query, (job.failcount, job.nextcheck, 1, "unknown", job.proto, job.duration, job.proxy)) self.mysqlite.commit() + self.collected = [] def run_background(self): t = threading.Thread(target=self.run)