Merge PR #297: Fix UPnP discovery if wifi comes up late
This commit is contained in:
commit
a01d5ea5b9
@ -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