Commit 5cac14bc authored by Albert Vaca Cintora's avatar Albert Vaca Cintora

LanLinkProvider's onNetworkChange has no effect if onStop was called first

parent b56d14d3
......@@ -57,7 +57,9 @@ void LanLinkProvider::onStop()
void LanLinkProvider::onNetworkChange(QNetworkSession::State state)
{
Q_UNUSED(state);
//qDebug() << "onNetworkChange" << state;
if (!mTcpServer->isListening()) return;
NetworkPackage np("");
NetworkPackage::createIdentityPackage(&np);
np.set("tcpPort",tcpPort);
......
......@@ -38,7 +38,7 @@ public:
~LanLinkProvider();
QString name() { return "LanLinkProvider"; }
int priority() { return PRIORITY_HIGH + 10; }
int priority() { return PRIORITY_HIGH; }
public Q_SLOTS:
virtual void onNetworkChange(QNetworkSession::State state);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment