Skip to content

Commit 50f1694

Browse files
committed
Remove redundant setting of allJobsCompleted to 1
This will do it automatically.
1 parent 3c3b827 commit 50f1694

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/compress/zstdmt_compress.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,8 +1268,7 @@ size_t ZSTDMT_initCStream_internal(
12681268

12691269
if (mtctx->allJobsCompleted == 0) { /* previous compression not correctly finished */
12701270
ZSTDMT_waitForAllJobsCompleted(mtctx);
1271-
ZSTDMT_releaseAllJobResources(mtctx);
1272-
mtctx->allJobsCompleted = 1;
1271+
ZSTDMT_releaseAllJobResources(mtctx); /* Will set allJobsCompleted to 1 */
12731272
}
12741273

12751274
mtctx->params = params;

0 commit comments

Comments
 (0)