mirror of
https://github.com/g4klx/DMRGateway.git
synced 2026-04-21 06:13:47 +00:00
Don't close MQTT except at the end.
This commit is contained in:
parent
04146faa81
commit
61ccb47afd
1 changed files with 1 additions and 3 deletions
|
|
@ -364,10 +364,8 @@ int CDMRGateway::run()
|
|||
|
||||
m_mqtt = new CMQTTConnection(m_conf.getMQTTAddress(), m_conf.getMQTTPort(), m_conf.getMQTTName(), subscriptions, m_conf.getMQTTKeepalive());
|
||||
ret = m_mqtt->open();
|
||||
if (!ret) {
|
||||
delete m_mqtt;
|
||||
if (!ret)
|
||||
return 1;
|
||||
}
|
||||
|
||||
m_network1Enabled = m_conf.getDMRNetwork1Enabled();
|
||||
m_network2Enabled = m_conf.getDMRNetwork2Enabled();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue