From b221d34330a09b33c2fdb4ea290e8c4b6d21fcf5 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Mon, 7 Jul 2014 20:30:34 +0200 Subject: treat file adding as background job, so that quit doesn't crash --- playlist.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'playlist.c') diff --git a/playlist.c b/playlist.c index 20433004..2efc86c2 100644 --- a/playlist.c +++ b/playlist.c @@ -4196,6 +4196,7 @@ plt_add_files_begin (playlist_t *plt, int visibility) { for (ddb_fileadd_beginend_listener_t *l = file_add_beginend_listeners; l; l = l->next) { l->callback_begin (&d, l->user_data); } + background_job_increment (); return 0; } @@ -4216,6 +4217,7 @@ plt_add_files_end (playlist_t *plt, int visibility) { for (ddb_fileadd_beginend_listener_t *l = file_add_beginend_listeners; l; l = l->next) { l->callback_end (&d, l->user_data); } + background_job_decrement (); } void -- cgit v1.2.3