mirror of git://git.sysmocom.de/ofono
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:
parent
60aceb3e71
commit
80a8fd1a64
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue