diff options
author | Aleksander Morgado <aleksandermj@chromium.org> | 2023-09-04 17:23:30 +0000 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2023-09-11 19:39:59 +0000 |
commit | fb66cc26beaa8ee4b48040ea938043bb5919b273 (patch) | |
tree | 42d21508a01ff23210ec41af9929f2995fbf57c7 | |
parent | 0a872947253ca048e41be3482d2514e756a05f81 (diff) |
iface-modem: ignore UNKNOWN modem state explicitly during wait operation
-rw-r--r-- | src/mm-iface-modem.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mm-iface-modem.c b/src/mm-iface-modem.c index ed326adb..63902025 100644 --- a/src/mm-iface-modem.c +++ b/src/mm-iface-modem.c @@ -404,6 +404,10 @@ state_changed (MMIfaceModem *self, MM_IFACE_MODEM_STATE, &state, NULL); + /* Ignore unknown state explicitly during a wait operation */ + if (state == MM_MODEM_STATE_UNKNOWN) + return; + /* Are we in a final state already? */ if (MODEM_STATE_IS_INTERMEDIATE (state)) return; @@ -413,7 +417,6 @@ state_changed (MMIfaceModem *self, /* If we want a specific final state and this is not the one we were * looking for, then skip */ if (ctx->final_state != MM_MODEM_STATE_UNKNOWN && - state != MM_MODEM_STATE_UNKNOWN && state != ctx->final_state) return; |