pull: Properly propagate errors
This commit is contained in:
parent
0cb4fe66f8
commit
7cce6e5ba1
|
|
@ -184,13 +184,17 @@ check_outstanding_requests_handle_error (OtPullData *pull_data,
|
||||||
(pull_data->loose_files == NULL || g_hash_table_size (pull_data->loose_files) == 0))
|
(pull_data->loose_files == NULL || g_hash_table_size (pull_data->loose_files) == 0))
|
||||||
g_main_loop_quit (pull_data->loop);
|
g_main_loop_quit (pull_data->loop);
|
||||||
if (error)
|
if (error)
|
||||||
|
{
|
||||||
|
if (!pull_data->caught_error)
|
||||||
{
|
{
|
||||||
pull_data->caught_error = TRUE;
|
pull_data->caught_error = TRUE;
|
||||||
if (pull_data->async_error)
|
|
||||||
g_error_free (error);
|
|
||||||
else
|
|
||||||
g_propagate_error (pull_data->async_error, error);
|
g_propagate_error (pull_data->async_error, error);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
g_error_free (error);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue