Inform other devices we don't trust them when they talk to us

This commit is contained in:
Albert Vaca 2014-06-09 11:52:46 +02:00
parent 78597637e7
commit 27483bc0c5

View file

@ -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();
}
}