diff options
author | Frédéric Danis <frederic.danis@linux.intel.com> | 2011-02-17 18:23:29 +0100 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-02-17 11:25:27 -0600 |
commit | afe16ba22a17946374cf5121c7d08e4bcfbd2942 (patch) | |
tree | 4c7a462bc03ddd676039de4acca56655a70cf83f /src/emulator.c | |
parent | de02942e77ade9c8fa382bc2f6d54e225850ab6a (diff) | |
download | ofono-afe16ba22a17946374cf5121c7d08e4bcfbd2942.tar.bz2 |
emulator: always create emulators in offline state
this allows to fix problem when atom created in online state
are destroyed when modem goes to offline state
Diffstat (limited to 'src/emulator.c')
-rw-r--r-- | src/emulator.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/emulator.c b/src/emulator.c index 57449030..101b33d9 100644 --- a/src/emulator.c +++ b/src/emulator.c @@ -115,7 +115,8 @@ struct ofono_emulator *ofono_emulator_create(struct ofono_modem *modem, em->type = type; - em->atom = __ofono_modem_add_atom(modem, atom_t, emulator_remove, em); + em->atom = __ofono_modem_add_atom_offline(modem, atom_t, + emulator_remove, em); return em; } |