Merge PR #297: Fix UPnP discovery if wifi comes up late

This commit is contained in:
Jenkins nymea 2020-06-07 19:16:24 +02:00
commit a01d5ea5b9

View File

@ -528,6 +528,9 @@ bool UpnpDiscoveryImplementation::enable()
return false;
}
m_available = true;
emit availableChanged(true);
connect(m_socket, SIGNAL(error(QAbstractSocket::SocketError)), this, SLOT(error(QAbstractSocket::SocketError)));
connect(m_socket, &QUdpSocket::readyRead, this, &UpnpDiscoveryImplementation::readData);