huaweimodem: Reset errors for USSD cancel operation

This commit is contained in:
Marcel Holtmann 2012-01-12 06:25:36 +01:00
parent 2292753f4e
commit b111c99026
1 changed files with 8 additions and 0 deletions

View File

@ -123,6 +123,14 @@ static void cusd_cancel_cb(gboolean ok, GAtResult *result, gpointer user_data)
decode_at_error(&error, g_at_result_final_response(result));
/*
* All errors and notifications arrive unexpected and
* thus just reset the state here. This is safer than
* getting stuck in a dead-lock.
*/
error.type = OFONO_ERROR_TYPE_NO_ERROR;
error.error = 0;
cb(&error, cbd->data);
}