Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 2d7101c7 authored by Christopher R. Palmer's avatar Christopher R. Palmer
Browse files

telephony: Release pending network requests when releasing a request

During system startup, a network request may move from the DctController
to a network factory where it is held as a pending request until the
telephony state is fully initialized.

When handling a releaseNetwork call, we must release the request
from the pending queues of all network factories as well.

Without this fix, on boot it is possible for a network request to be
added and thne moved to the pending queue of a network factory.  Then,
an attempt to release it will be a no-op instead of actually releasing
the network.

The end result is that the network request will eventually be executed
even though it is no longer desired.

If WiFi is connected when the request is executed, then the cellular
network will get a data connection but the ConnectivityService will
deem the network uneeded and kill it.  After killing it, telephony
will automatically reconnect the network because it (incorrectly)
believes that the network is needed because it was not released
when it was supposed to be.

Change-Id: Ifcb8676aec7a048e11de5a62103eb5f480566468
parent e4a56f52
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment