[rhythmbox] podcast: commit status change after cancelling downloads
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] podcast: commit status change after cancelling downloads
- Date: Sun, 24 Jan 2021 11:13:50 +0000 (UTC)
commit a73d09b8ca29edacedc50dbe3c380c782640dd4e
Author: Jonathan Matthew <jonathan d14n org>
Date: Sun Jan 24 21:11:23 2021 +1000
podcast: commit status change after cancelling downloads
podcast/rb-podcast-manager.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/podcast/rb-podcast-manager.c b/podcast/rb-podcast-manager.c
index 76c2e0508..a34b2aaae 100644
--- a/podcast/rb-podcast-manager.c
+++ b/podcast/rb-podcast-manager.c
@@ -1718,8 +1718,6 @@ podcast_download_cb (GObject *source_object, GAsyncResult *res, gpointer data)
g_value_set_string (&val, error->message);
rhythmdb_entry_set (pd->priv->db, download->entry, RHYTHMDB_PROP_PLAYBACK_ERROR,
&val);
g_value_unset (&val);
-
- rhythmdb_commit (pd->priv->db);
} else {
rb_debug ("download of %s was cancelled", get_remote_location (download->entry));
g_value_init (&val, G_TYPE_ULONG);
@@ -1728,6 +1726,7 @@ podcast_download_cb (GObject *source_object, GAsyncResult *res, gpointer data)
g_value_unset (&val);
}
+ rhythmdb_commit (pd->priv->db);
g_clear_error (&error);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]