diff --git a/tasks/task_decompress.c b/tasks/task_decompress.c index 276b829a5c..104725c831 100644 --- a/tasks/task_decompress.c +++ b/tasks/task_decompress.c @@ -247,7 +247,6 @@ bool rarch_task_push_decompress( retro_task_callback_t cb, void *user_data) { - task_finder_data_t find_data; char tmp[PATH_MAX_LENGTH]; decompress_state_t *s = NULL; retro_task_t *t = NULL; @@ -275,10 +274,7 @@ bool rarch_task_push_decompress( if (!valid_ext || !valid_ext[0]) valid_ext = NULL; - find_data.func = rarch_task_decompress_finder; - find_data.userdata = (void*)source_file; - - if (task_queue_ctl(TASK_QUEUE_CTL_FIND, &find_data)) + if (rarch_task_check_decompress(source_file)) { RARCH_LOG("[decompress] File '%s' already being decompressed.\n", source_file);