Inform other devices we don't trust them when they talk to us
This commit is contained in:
parent
78597637e7
commit
27483bc0c5
1 changed files with 2 additions and 3 deletions
|
@ -194,8 +194,6 @@ void Device::requestPair()
|
|||
|
||||
void Device::unpair()
|
||||
{
|
||||
if (!isPaired()) return;
|
||||
|
||||
m_pairStatus = Device::NotPaired;
|
||||
|
||||
KSharedConfigPtr config = KSharedConfig::openConfig("kdeconnectrc");
|
||||
|
@ -384,8 +382,9 @@ void Device::privateReceivedPackage(const NetworkPackage& np)
|
|||
plugin->receivePackage(np);
|
||||
}
|
||||
} else {
|
||||
//TODO: Notify the other side that we don't trust them
|
||||
kDebug(kdeconnect_kded()) << "device" << name() << "not paired, ignoring package" << np.type();
|
||||
unpair();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue