From 96679fbd35d3ebf1720bde01b017fedaec16f0d8 Mon Sep 17 00:00:00 2001 From: Nick Foster Date: Mon, 22 Jul 2013 22:14:45 -0700 Subject: [PATCH] Fix stupid race condx the stupid way. --- python/kml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/kml.py b/python/kml.py index 1b6c04d..28f3ac0 100644 --- a/python/kml.py +++ b/python/kml.py @@ -39,8 +39,8 @@ class output_kml(threading.Thread): def run(self): self._db = sqlite3.connect(self._dbname) #read from the db while self.shutdown.is_set() is False: - self.writekml() time.sleep(self._timeout) + self.writekml() self._db.close() self._db = None