From 4695a9b0c8a7adea934d6ec5a3ebc60ebb476ecb Mon Sep 17 00:00:00 2001 From: crvi Date: Fri, 28 Feb 2020 10:31:42 +0530 Subject: [PATCH] podcast: allow cancellation even before download starts Closes: #1780 --- podcast/rb-podcast-manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/podcast/rb-podcast-manager.c b/podcast/rb-podcast-manager.c index 6d397437b..55ef4d541 100644 --- a/podcast/rb-podcast-manager.c +++ b/podcast/rb-podcast-manager.c @@ -767,6 +767,7 @@ rb_podcast_manager_next_file (RBPodcastManager * pd) } data->source = g_file_new_for_uri (location); + data->cancel = g_cancellable_new (); g_file_read_async (data->source, 0, @@ -994,7 +995,6 @@ download_podcast (GFileInfo *src_info, RBPodcastManagerInfo *data) g_signal_emit (data->pd, rb_podcast_manager_signals[START_DOWNLOAD], 0, data->entry); - data->cancel = g_cancellable_new (); data->thread = g_thread_new ("podcast-download", (GThreadFunc) podcast_download_thread, data);