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)