Fix UPnP discovery if wifi comes up late

pull/297/head
Michael Zanetti 2020-05-27 00:08:08 +02:00
parent 9af820b696
commit 7eee989e12
1 changed files with 3 additions and 0 deletions

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);