diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modem.c b/src/modem.c index 908c7c58..96f36ffe 100644 --- a/src/modem.c +++ b/src/modem.c @@ -318,7 +318,7 @@ struct ofono_atom *__ofono_modem_find_atom(struct ofono_modem *modem, for (l = modem->atoms; l; l = l->next) { atom = l->data; - if (atom->type == type) + if (atom->type == type && atom->unregister != NULL) return atom; } |