pull: Don't crash if the URL is not found

This commit is contained in:
Colin Walters 2014-02-06 03:46:14 -05:00
parent 2d6374822b
commit d744436a50
1 changed files with 1 additions and 1 deletions

View File

@ -378,7 +378,7 @@ fetch_uri_contents_membuf_sync (OtPullData *pull_data,
run_mainloop_monitor_fetcher (pull_data); run_mainloop_monitor_fetcher (pull_data);
if (!fetch_data.result_stream) if (!fetch_data.result_stream)
{ {
if (g_error_matches (*error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND)) if (allow_noent && g_error_matches (*error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND))
{ {
g_clear_error (error); g_clear_error (error);
ret = TRUE; ret = TRUE;