split the creation and the acquire-call
This commit is contained in:
@@ -63,6 +63,9 @@ class AMAN:
|
|||||||
self.WebUi = WebUI()
|
self.WebUi = WebUI()
|
||||||
self.WebUi.acquire(self.SystemConfig.Server, self)
|
self.WebUi.acquire(self.SystemConfig.Server, self)
|
||||||
|
|
||||||
|
# create the EuroScope receiver
|
||||||
|
self.Receiver = Euroscope()
|
||||||
|
|
||||||
# find the airport configurations and create the workers
|
# find the airport configurations and create the workers
|
||||||
airportsPath = os.path.join(os.path.join(configPath, 'airports'), '*.ini')
|
airportsPath = os.path.join(os.path.join(configPath, 'airports'), '*.ini')
|
||||||
for file in glob.glob(airportsPath):
|
for file in glob.glob(airportsPath):
|
||||||
@@ -77,8 +80,7 @@ class AMAN:
|
|||||||
self.Workers.append(worker)
|
self.Workers.append(worker)
|
||||||
print('Started worker for ' + icao)
|
print('Started worker for ' + icao)
|
||||||
|
|
||||||
# create the EuroScope receiver
|
# initialize the receiver
|
||||||
self.Receiver = Euroscope()
|
|
||||||
self.Receiver.acquire(configPath, self.SystemConfig.Server, self)
|
self.Receiver.acquire(configPath, self.SystemConfig.Server, self)
|
||||||
|
|
||||||
def release(self):
|
def release(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user