Fixed bug when pairing fails if initiated by the desktop

If the phone thinks that it's already paired with the computer when
receiving a pairing request, it will answer stuff back that will cause
the desktop to abort the pairing process.
This commit is contained in:
Albert Vaca 2015-03-15 19:19:29 -07:00
parent 856bd1e346
commit 654ee39b37

View file

@ -391,9 +391,7 @@ void Device::privateReceivedPackage(const NetworkPackage& np)
} }
} else { } else {
qCDebug(KDECONNECT_CORE) << "device" << name() << "not paired, ignoring package" << np.type(); qCDebug(KDECONNECT_CORE) << "device" << name() << "not paired, ignoring package" << np.type();
if (m_pairStatus != Device::Requested)
//FIXME: Uncommenting this fixes a bug where trying to pair from kde does not work, but I want to investigate the root cause of the bug first (01/03/15)
//if (m_pairStatus != Device::Requested)
unpair(); unpair();
} }