From 5cefef5366aa875bbad491d70f000a0e5f79178f Mon Sep 17 00:00:00 2001 From: Andy CA6JAU Date: Sat, 10 Mar 2018 23:36:03 -0300 Subject: [PATCH] Load reflector list after configure Parrot and YSF2DMR pseudo reflectors --- YSFGateway/YSFGateway.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/YSFGateway/YSFGateway.cpp b/YSFGateway/YSFGateway.cpp index 3cc0384..2adc459 100644 --- a/YSFGateway/YSFGateway.cpp +++ b/YSFGateway/YSFGateway.cpp @@ -228,7 +228,6 @@ int CYSFGateway::run() unsigned int reloadTime = m_conf.getYSFNetworkReloadTime(); m_reflectors = new CYSFReflectors(fileName, reloadTime); - m_reflectors->load(); m_reflectors->reload(); createWiresX(&rptNetwork); @@ -460,14 +459,15 @@ void CYSFGateway::createWiresX(CYSFNetwork* rptNetwork) unsigned int port = m_conf.getYSFNetworkParrotPort(); if (port > 0U) - m_wiresX->setParrot(address, port); + m_wiresX->setParrot(address, port); address = m_conf.getYSFNetworkYSF2DMRAddress(); port = m_conf.getYSFNetworkYSF2DMRPort(); if (port > 0U) - m_wiresX->setYSF2DMR(address, port); + m_wiresX->setYSF2DMR(address, port); + m_reflectors->load(); m_wiresX->start(); }