Fix stupid race condx the stupid way.
This commit is contained in:
+1
-1
@@ -39,8 +39,8 @@ class output_kml(threading.Thread):
|
|||||||
def run(self):
|
def run(self):
|
||||||
self._db = sqlite3.connect(self._dbname) #read from the db
|
self._db = sqlite3.connect(self._dbname) #read from the db
|
||||||
while self.shutdown.is_set() is False:
|
while self.shutdown.is_set() is False:
|
||||||
self.writekml()
|
|
||||||
time.sleep(self._timeout)
|
time.sleep(self._timeout)
|
||||||
|
self.writekml()
|
||||||
|
|
||||||
self._db.close()
|
self._db.close()
|
||||||
self._db = None
|
self._db = None
|
||||||
|
|||||||
Reference in New Issue
Block a user