Disabled removing links when exiting discovery mode because it was broken.

If both devices are in "discovery mode" (ie: both want to keep links
established) and the last one to create the link goes out of discovery
mode, it will close the link when it shouldn't (because the other end still
was "using" it to display it to the user).
This commit is contained in:
Albert Vaca 2016-07-12 12:38:40 +02:00
parent 7da30ddbb1
commit f41877fbec

View file

@ -151,7 +151,11 @@ void LanDeviceLink::setPairStatus(PairStatus status)
} }
bool LanDeviceLink::linkShouldBeKeptAlive() { bool LanDeviceLink::linkShouldBeKeptAlive() {
return true; //FIXME: Current implementation is broken, so for now we will keep links always established
//We keep the remotely initiated connections, since the remotes require them if they want to request //We keep the remotely initiated connections, since the remotes require them if they want to request
//pairing to us, or connections that are already paired. TODO: Keep connections in the process of pairing //pairing to us, or connections that are already paired. TODO: Keep connections in the process of pairing
return (mConnectionSource == ConnectionStarted::Remotely || pairStatus() == Paired); //return (mConnectionSource == ConnectionStarted::Remotely || pairStatus() == Paired);
} }