فهرست منبع

split the creation and the acquire-call

Sven Czarnian 3 سال پیش
والد
کامیت
feb4f85dac
1فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 4 2
      aman/AMAN.py

+ 4 - 2
aman/AMAN.py

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