Skip to content

Commit b2ad383

Browse files
Coder-256luben
authored andcommitted
After an exception, only release the cctx lock once
1 parent 9a5c4b2 commit b2ad383

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/main/java/com/github/luben/zstd/ZstdCompressCtx.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,6 @@ public ZstdCompressCtx registerSequenceProducer(SequenceProducer producer) {
299299
} catch (Exception e) {
300300
this.seqprod = null;
301301
Zstd.registerSequenceProducer(nativePtr, 0, 0);
302-
releaseSharedLock();
303302
throw e;
304303
} finally {
305304
releaseSharedLock();

0 commit comments

Comments
 (0)