We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb9e729 commit 3005895Copy full SHA for 3005895
Sources/JavaKit/JavaKitVM/JavaVirtualMachine.swift
@@ -119,11 +119,11 @@ public final class JavaVirtualMachine: @unchecked Sendable {
119
throw error
120
}
121
122
- _ = destroyOnDeinit.withLock { $0 = false } // we destroyed explicitly, disable destroy in deinit
+ destroyOnDeinit.withLock { $0 = false } // we destroyed explicitly, disable destroy in deinit
123
124
125
deinit {
126
- if destroyOnDeinit.withLock { $0 } {
+ if destroyOnDeinit.withLock({ $0 }) {
127
do {
128
try destroyJVM()
129
} catch {
0 commit comments