aboutsummaryrefslogtreecommitdiff
path: root/src/mm-broadband-modem.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2018-08-06 10:12:01 +0200
committerDan Williams <dcbw@redhat.com>2018-08-08 18:38:05 +0000
commitc4766122476b53a89c606bd0c0cbbd0ec6d9826b (patch)
tree5b62815f6e9dd7fb4d421677ede125f6369a25dc /src/mm-broadband-modem.c
parent30eef126a1fd0dbd5ae531103c88923d8a20ca2f (diff)
base-modem: allow parallel Enable() and Disable() requests
If additional Enable() requests are received while one is already ongoing, we queue them and will end up completing all with the same result once the first one finishes. Same logic also for Disable(). https://gitlab.freedesktop.org/mobile-broadband/ModemManager/issues/8
Diffstat (limited to 'src/mm-broadband-modem.c')
-rw-r--r--src/mm-broadband-modem.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mm-broadband-modem.c b/src/mm-broadband-modem.c
index 8afec66f..8c083566 100644
--- a/src/mm-broadband-modem.c
+++ b/src/mm-broadband-modem.c
@@ -10006,11 +10006,7 @@ enable (MMBaseModem *self,
break;
case MM_MODEM_STATE_ENABLING:
- g_task_return_new_error (task,
- MM_CORE_ERROR,
- MM_CORE_ERROR_IN_PROGRESS,
- "Cannot enable modem: "
- "already being enabled");
+ g_assert_not_reached ();
break;
case MM_MODEM_STATE_ENABLED: