Skip to content

Commit

Permalink
chore: complete calling function
Browse files Browse the repository at this point in the history
  • Loading branch information
apskhem committed Oct 17, 2024
1 parent 2935243 commit f87028f
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,19 @@ function runCompressionInWorker(fnName) {
}

if (result) {
complete(resolve(result));
resolve(result);
} else {
complete(reject(error || 'Unexpected error'));
reject(error || 'Unexpected error');
}

processingIdsPool.delete(id);
complete();
},
(error, complete) => {
complete(reject(error));
reject(error);

processingIdsPool.clear();
complete();
}
);

Expand Down

0 comments on commit f87028f

Please sign in to comment.