diff options
author | Leandro Pereira <leandro@hardinfo.org> | 2020-05-13 21:52:40 -0700 |
---|---|---|
committer | Leandro Pereira <leandro@hardinfo.org> | 2020-05-13 21:52:40 -0700 |
commit | ac136d3af017778d91fc3fa9eda4988059532646 (patch) | |
tree | 3e6470bf57f39cae791b3fcb96b78ba8b218c3ff /shell/syncmanager.c | |
parent | 482f0e2261349c1a931f35a59cc016a09792cce2 (diff) |
Try to save the contents of the downloaded file even if the stream isn't ready
Diffstat (limited to 'shell/syncmanager.c')
-rw-r--r-- | shell/syncmanager.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |