diff options
author | Ben Chan <benchan@chromium.org> | 2017-07-17 18:10:59 -0700 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2017-07-18 10:33:00 +0200 |
commit | 0657914ebbe387a4bb356303086fe0f354d88756 (patch) | |
tree | b1c817b4d754d8955f26dcdb36171f8fddea3f30 /src/mm-call-list.c | |
parent | 4901a676600809fba9a8805fc524c4c1710f539a (diff) |
call-list: fix mm_call_list_delete_call to use g_task_report_new_error
Commit a08064492 ("call-list: port mm_call_list_delete_call to use GTask")
ported most of the mm_call_list_delete_call code to use GTask, but missed a
g_simple_async_report_error_in_idle calls, which can potentially lead to
an incorrect G_TASK cast in mm_call_list_delete_call_finish.
Diffstat (limited to 'src/mm-call-list.c')
-rw-r--r-- | src/mm-call-list.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/mm-call-list.c b/src/mm-call-list.c index 1cc1f543..9457bb2b 100644 --- a/src/mm-call-list.c +++ b/src/mm-call-list.c @@ -283,13 +283,14 @@ mm_call_list_delete_call (MMCallList *self, (gpointer)call_path, (GCompareFunc)cmp_call_by_path); if (!l) { - g_simple_async_report_error_in_idle (G_OBJECT (self), - callback, - user_data, - MM_CORE_ERROR, - MM_CORE_ERROR_NOT_FOUND, - "No CALL found with path '%s'", - call_path); + g_task_report_new_error (self, + callback, + user_data, + mm_call_list_delete_call, + MM_CORE_ERROR, + MM_CORE_ERROR_NOT_FOUND, + "No CALL found with path '%s'", + call_path); return; } |