fix a crash during the update call
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user