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:
parent
7da30ddbb1
commit
f41877fbec
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue