Skip to content

Commit

Permalink
After an exception, only release the cctx lock once
Browse files Browse the repository at this point in the history
  • Loading branch information
Coder-256 authored and luben committed Nov 30, 2023
1 parent 9a5c4b2 commit b2ad383
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/main/java/com/github/luben/zstd/ZstdCompressCtx.java
Expand Up @@ -299,7 +299,6 @@ public ZstdCompressCtx registerSequenceProducer(SequenceProducer producer) {
} catch (Exception e) {
this.seqprod = null;
Zstd.registerSequenceProducer(nativePtr, 0, 0);
releaseSharedLock();
throw e;
} finally {
releaseSharedLock();
Expand Down

0 comments on commit b2ad383

Please sign in to comment.