Fix UPnP discovery if wifi comes up late
This commit is contained in:
parent
9af820b696
commit
7eee989e12
@ -528,6 +528,9 @@ bool UpnpDiscoveryImplementation::enable()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_available = true;
|
||||||
|
emit availableChanged(true);
|
||||||
|
|
||||||
connect(m_socket, SIGNAL(error(QAbstractSocket::SocketError)), this, SLOT(error(QAbstractSocket::SocketError)));
|
connect(m_socket, SIGNAL(error(QAbstractSocket::SocketError)), this, SLOT(error(QAbstractSocket::SocketError)));
|
||||||
connect(m_socket, &QUdpSocket::readyRead, this, &UpnpDiscoveryImplementation::readData);
|
connect(m_socket, &QUdpSocket::readyRead, this, &UpnpDiscoveryImplementation::readData);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user