fix a crash during the update call

This commit is contained in:
Sven Czarnian
2021-09-25 09:03:55 +02:00
parent dc2a435e8e
commit 667829b03d
2 changed files with 16 additions and 3 deletions

View File

@@ -91,8 +91,7 @@ class AMAN:
# find the correct worker for the inbound
for worker in self.workers:
if worker.icao == report.destination:
print('Updated ' + report.aircraft.callsign + ' for ' + worker.icao)
worker.acquire()
worker.acquireLock()
worker.reportQueue[report.aircraft.callsign] = report
worker.release()
worker.releaseLock()
break