plugins: rm unneeded exits/sleeps from ril plugin

This commit is contained in:
Tony Espy 2015-11-19 17:16:30 -05:00 committed by Denis Kenzior
parent a35de9c0c9
commit 72ddf14046
1 changed files with 4 additions and 5 deletions

View File

@ -142,11 +142,10 @@ static void ril_radio_state_changed(struct ril_msg *message, gpointer user_data)
* too fast re-spawns, then exit with error to make * too fast re-spawns, then exit with error to make
* upstart re-start ofono. * upstart re-start ofono.
*/ */
if (rd->ofono_online) { if (rd->ofono_online)
ofono_error("%s: radio self-powered off!", ofono_error("%s: radio self-powered off!",
__func__); __func__);
exit(1);
}
break; break;
} }
} }
@ -397,8 +396,8 @@ static gboolean connect_rild(gpointer user_data)
if (create_gril(modem) < 0) if (create_gril(modem) < 0)
return TRUE; return TRUE;
} else { } else {
ofono_error("Exiting, can't connect to rild."); ofono_error("Failed to connect to rild.");
exit(0); return TRUE;
} }
return FALSE; return FALSE;