base-call: formatting cleanups
This commit is contained in:
@@ -612,8 +612,7 @@ call_start_ready (MMBaseModem *modem,
|
|||||||
|
|
||||||
if (g_error_matches (error, MM_CONNECTION_ERROR, MM_CONNECTION_ERROR_BUSY) ||
|
if (g_error_matches (error, MM_CONNECTION_ERROR, MM_CONNECTION_ERROR_BUSY) ||
|
||||||
g_error_matches (error, MM_CONNECTION_ERROR, MM_CONNECTION_ERROR_NO_ANSWER) ||
|
g_error_matches (error, MM_CONNECTION_ERROR, MM_CONNECTION_ERROR_NO_ANSWER) ||
|
||||||
g_error_matches (error, MM_CONNECTION_ERROR, MM_CONNECTION_ERROR_NO_CARRIER) )
|
g_error_matches (error, MM_CONNECTION_ERROR, MM_CONNECTION_ERROR_NO_CARRIER)) {
|
||||||
{
|
|
||||||
/* Update state */
|
/* Update state */
|
||||||
mm_base_call_change_state(ctx->self, MM_CALL_STATE_TERMINATED, MM_CALL_STATE_REASON_REFUSED_OR_BUSY);
|
mm_base_call_change_state(ctx->self, MM_CALL_STATE_TERMINATED, MM_CALL_STATE_REASON_REFUSED_OR_BUSY);
|
||||||
}
|
}
|
||||||
@@ -626,7 +625,7 @@ call_start_ready (MMBaseModem *modem,
|
|||||||
|
|
||||||
/* check response for error */
|
/* check response for error */
|
||||||
if (response && strlen (response) > 0 ) {
|
if (response && strlen (response) > 0 ) {
|
||||||
g_set_error (&error, MM_CORE_ERROR, MM_CORE_ERROR_FAILED,
|
error = g_error_new (MM_CORE_ERROR, MM_CORE_ERROR_FAILED,
|
||||||
"Couldn't start the call: "
|
"Couldn't start the call: "
|
||||||
"Modem response '%s'", response);
|
"Modem response '%s'", response);
|
||||||
/* Update state */
|
/* Update state */
|
||||||
|
Reference in New Issue
Block a user