Fix connected state for tcp server while set up
parent
1f411c2244
commit
a152974228
|
|
@ -91,7 +91,9 @@ void IntegrationPluginTcpCommander::setupThing(ThingSetupInfo *info)
|
|||
m_tcpServers.insert(thing, tcpServer);
|
||||
connect(tcpServer, &TcpServer::connectionCountChanged, this, &IntegrationPluginTcpCommander::onTcpServerConnectionCountChanged);
|
||||
connect(tcpServer, &TcpServer::commandReceived, this, &IntegrationPluginTcpCommander::onTcpServerCommandReceived);
|
||||
return info->finish(Thing::ThingErrorNoError);
|
||||
info->finish(Thing::ThingErrorNoError);
|
||||
thing->setStateValue("connected", true);
|
||||
return;
|
||||
} else {
|
||||
tcpServer->deleteLater();
|
||||
qDebug(dcTCPCommander()) << "Could not open TCP Server";
|
||||
|
|
|
|||
Loading…
Reference in New Issue