properly clean submitted job list after db write

This commit is contained in:
rofl0r
2019-01-05 16:44:31 +00:00
parent 42f35855ea
commit 47221bae94

View File

@@ -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)