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.
This commit is contained in:
Denis Kenzior 2010-11-22 09:56:22 -06:00
parent 60aceb3e71
commit 80a8fd1a64
1 changed files with 2 additions and 2 deletions

View File

@ -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: