diff options
author | Tony Espy <espy@canonical.com> | 2015-11-19 17:16:30 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2015-11-19 16:30:32 -0600 |
commit | 72ddf1404695cc91b2d684acda7c4fdd74a29602 (patch) | |
tree | 9cde7dd82723c3c624bf5014b54178d91fbf4d5b /plugins/ril.c | |
parent | a35de9c0c935a545e9077f66d7d695e44a64b9d5 (diff) | |
download | ofono-72ddf1404695cc91b2d684acda7c4fdd74a29602.tar.gz |
plugins: rm unneeded exits/sleeps from ril plugin
Diffstat (limited to 'plugins/ril.c')
-rw-r--r-- | plugins/ril.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/ril.c b/plugins/ril.c index 7820be4c..44714e4d 100644 --- a/plugins/ril.c +++ b/plugins/ril.c @@ -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 * upstart re-start ofono. */ - if (rd->ofono_online) { + if (rd->ofono_online) ofono_error("%s: radio self-powered off!", __func__); - exit(1); - } + break; } } @@ -397,8 +396,8 @@ static gboolean connect_rild(gpointer user_data) if (create_gril(modem) < 0) return TRUE; } else { - ofono_error("Exiting, can't connect to rild."); - exit(0); + ofono_error("Failed to connect to rild."); + return TRUE; } return FALSE; |