From 27483bc0c58f46a105777b4c6223d7803d33d0a1 Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Mon, 9 Jun 2014 11:52:46 +0200 Subject: [PATCH] Inform other devices we don't trust them when they talk to us --- kded/device.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kded/device.cpp b/kded/device.cpp index ce31ae574..ee13dcc44 100644 --- a/kded/device.cpp +++ b/kded/device.cpp @@ -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(); + } }