Only force modem to stop if not already stopped
This commit is contained in:
parent
92e41b7509
commit
6014d4c610
@ -2834,8 +2834,8 @@ static void _system_on_ok(gpointer data)
|
|||||||
}
|
}
|
||||||
_phone_config_save(phone);
|
_phone_config_save(phone);
|
||||||
/* restart the phone */
|
/* restart the phone */
|
||||||
phone_event_type(phone, PHONE_EVENT_TYPE_STOPPING); /* ignore errors */
|
if(phone_event_type(phone, PHONE_EVENT_TYPE_STOPPING) != 0)
|
||||||
modem_stop(phone->modem);
|
modem_stop(phone->modem); /* force modem to stop */
|
||||||
phone_event_type(phone, PHONE_EVENT_TYPE_STARTING);
|
phone_event_type(phone, PHONE_EVENT_TYPE_STARTING);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user