Merge pull request #16 from g0wfv/develop

Stop gateway bombing out when MMDVMHost stops after the gateway has restarted
This commit is contained in:
Jonathan Naylor 2017-06-02 11:53:19 +01:00 committed by GitHub
commit c70e35d5b7

View file

@ -268,7 +268,7 @@ int CDMRGateway::run()
while (!m_killed) {
unsigned char config[400U];
unsigned int len = m_repeater->getConfig(config);
if (len > 0U)
if (len > 0U && m_repeater->getId() > 1000U)
break;
m_repeater->clock(10U);