manager: prevent excessive logging.
Skip "Job failed" warning when the error is caused by ouselves cancelling the thread. Bug: https://bugzilla.gnome.org/show_bug.cgi?id=749337
This commit is contained in:
+1
-1
@@ -183,7 +183,7 @@ thread_job_data_free (gpointer ptr)
|
|||||||
{
|
{
|
||||||
/* This should go to UI with more info/description,
|
/* This should go to UI with more info/description,
|
||||||
* if it is not G_IOI_ERROR_CANCELLED */
|
* if it is not G_IOI_ERROR_CANCELLED */
|
||||||
if (tjd->error != NULL)
|
if (tjd->error != NULL && !g_error_matches (tjd->error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
|
||||||
g_warning ("Job failed: %s\n", tjd->error->message);
|
g_warning ("Job failed: %s\n", tjd->error->message);
|
||||||
|
|
||||||
if (tjd->free_user_data != NULL)
|
if (tjd->free_user_data != NULL)
|
||||||
|
|||||||
Reference in New Issue
Block a user