extend the worker thread

This commit is contained in:
Sven Czarnian
2021-10-12 22:27:55 +02:00
parent bba4a75527
commit 2ef1e13bd6
2 changed files with 66 additions and 8 deletions

View File

@@ -50,7 +50,7 @@ class AMAN:
sys.stderr.write('No aircraft performance data found!')
sys.exit(-1)
else:
print('Parsed PerformanceData.ini. Extracted ' + str(len(self.aircraftPerformance.aircrafts)) + ' aircrafts')
print('Parsed PerformanceData.ini. Extracted ' + str(len(self.aircraftPerformance.Aircrafts)) + ' aircrafts')
self.weather = Weather()
self.weather.acquire(self.systemConfig.Weather)
@@ -65,7 +65,7 @@ class AMAN:
# initialize the worker thread
worker = Worker()
worker.acquire(icao, airportConfig)
worker.acquire(icao, airportConfig, self.weather, self.aircraftPerformance)
self.workers.append(worker)
print('Started worker for ' + icao)