fix a crash during the update call

此提交包含在:
Sven Czarnian
2021-09-25 09:03:55 +02:00
父節點 dc2a435e8e
當前提交 667829b03d
共有 2 個檔案被更改,包括 16 行新增3 行删除

查看文件

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