From ac136d3af017778d91fc3fa9eda4988059532646 Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Wed, 13 May 2020 21:52:40 -0700 Subject: Try to save the contents of the downloaded file even if the stream isn't ready --- shell/syncmanager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shell') diff --git a/shell/syncmanager.c b/shell/syncmanager.c index da1ecae0..226cb342 100644 --- a/shell/syncmanager.c +++ b/shell/syncmanager.c @@ -243,7 +243,7 @@ static void got_response(GObject *source, GAsyncResult *res, gpointer user_data) if (sna->error != NULL) goto out; - if (sna->entry->file_name != NULL && g_input_stream_has_pending(is)) { + if (sna->entry->file_name != NULL) { gchar *path = g_build_filename(g_get_user_config_dir(), "hardinfo", sna->entry->file_name, NULL); GFile *file = g_file_new_for_path(path); -- cgit v1.2.3