bearer-qmi: don't try to gather connection settings if we didn't connect

This commit is contained in:
Aleksander Morgado
2013-03-21 17:29:49 +01:00
parent aa84ce98f7
commit ad757bd3bc

View File

@@ -690,7 +690,9 @@ connect_context_step (ConnectContext *ctx)
return;
}
case CONNECT_STEP_GET_CURRENT_SETTINGS: {
case CONNECT_STEP_GET_CURRENT_SETTINGS:
/* If one of IPv4 or IPv6 succeeds, get IP configuration */
if (ctx->packet_data_handle_ipv4 || ctx->packet_data_handle_ipv6) {
QmiMessageWdsGetCurrentSettingsInput *input;
QmiClientWds *client;
@@ -712,6 +714,8 @@ connect_context_step (ConnectContext *ctx)
qmi_message_wds_get_current_settings_input_unref (input);
return;
}
/* Just fall down */
ctx->step++;
case CONNECT_STEP_LAST:
/* If one of IPv4 or IPv6 succeeds, we're connected */