diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-11-22 09:56:22 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-11-22 09:56:22 -0600 |
commit | 80a8fd1a6421b1364ec3f9c2de07bf1f74a304dd (patch) | |
tree | f0ab4585594e6fed008c0e1aa80b5b9ccc08394b /src | |
parent | 60aceb3e7180a3f2376b5a71c6c31b9cace40812 (diff) | |
download | ofono-80a8fd1a6421b1364ec3f9c2de07bf1f74a304dd.tar.bz2 |
modem: Don't notify online watches the first time
We should not notify the online watches when we enter the OFFLINE state
for the first time. We should only do so when we go from ONLINE state
into the OFFLINE state.
Diffstat (limited to 'src')
-rw-r--r-- | src/modem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modem.c b/src/modem.c index e519f40e..cfc767e6 100644 --- a/src/modem.c +++ b/src/modem.c @@ -420,9 +420,9 @@ static void modem_change_state(struct ofono_modem *modem, driver->post_sim(modem); __ofono_history_probe_drivers(modem); __ofono_nettime_probe_drivers(modem); - } + } else + notify_online_watches(modem); - notify_online_watches(modem); break; case MODEM_STATE_ONLINE: |