Skip to content

Commit

Permalink
podcast: allow cancellation even before download starts
Browse files Browse the repository at this point in the history
Closes: #1780
  • Loading branch information
crvigh committed Mar 2, 2020
1 parent f55c531 commit 4695a9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion podcast/rb-podcast-manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 4695a9b

Please sign in to comment.