diff options
author | Aleksander Morgado <aleksandermj@chromium.org> | 2023-12-01 09:58:19 +0000 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2023-12-01 10:14:45 +0000 |
commit | 5fb285664534c1d65fdb446ea20a4900f08dbdef (patch) | |
tree | 8d05b64bfd8fa33eef21bf34ddc0952828fdec86 /libmm-glib/mm-modem-time.c | |
parent | dc4b1ec0f3d81adce37ea2918b7c651a5a783597 (diff) |
iface-modem: allow cancellability during unlock required checks
The process doing the unlock required checks may need a lot of retries
e.g. to decide whether a SIM card is available or not. If we do a
quick SIM eject, so the unlock required check starts looping, and then
insert the SIM again, we expect the loop to be cancelled right away,
so that the new modem object can be reprobed without any interference
from the old modem object.
We now take the modem-wide cancellable and bind it to the GTask in
mm_iface_modem_update_lock_info(), and we pass it down to every
sub-step of the async logic in the operation. We also plug the
cancellable to the delayed retries in the interface logic, to allow
aborting the checks right away
Diffstat (limited to 'libmm-glib/mm-modem-time.c')
0 files changed, 0 insertions, 0 deletions