Fix stupid race condx the stupid way.

This commit is contained in:
Nick Foster 2013-07-22 22:14:45 -07:00
parent fb6143596d
commit 96679fbd35

View File

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