Commit 5fee138a authored by Lamarque Souza's avatar Lamarque Souza
Browse files

Do not send the interfaceRemoved signal if NM stopped or crashed. If it

has crashed we can crash too if we send the interfaceRemoved signal here.

BUG: 296740
parent b58c105a
......@@ -341,14 +341,7 @@ void NMNetworkManagerNm09::nameOwnerChanged(QString name, QString oldOwner, QStr
;
}
if ( !oldOwner.isEmpty() && newOwner.isEmpty() ) {
Q_D(NMNetworkManagerNm09);
// In case NM has crashed and networkInterfaceRemoved signals have not being emitted.
foreach(const QString & path, d->networkInterfaces) {
emit networkInterfaceRemoved(path);
}
d->networkInterfaces.clear();
// NetworkManager stopped, set status Unknown for safety
// NetworkManager stopped or crashed, set status Unknown for safety
stateChanged(NM_STATE_UNKNOWN);
}
}
......
Supports Markdown
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