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

This commit is contained in:
Colin Walters committed 2014-02-06 03:46:14 -05:00
1 parent 2d6374822b
commit d744436a50
1 file changed
+1 -1
+1 -1
View File
@@ -378,7 +378,7 @@ fetch_uri_contents_membuf_sync (OtPullData *pull_data,
run_mainloop_monitor_fetcher (pull_data);
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);
ret = TRUE;