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