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 55380ec commit b612897Copy full SHA for b612897
src/main/java/org/jruby/ext/openssl/SSLContext.java
@@ -339,11 +339,6 @@ public IRubyObject setup(final ThreadContext context) {
339
340
if ( isFrozen() ) return runtime.getNil();
341
342
- synchronized(this) {
343
- if ( isFrozen() ) return runtime.getNil();
344
- this.freeze(context);
345
- }
346
-
347
final X509Store certStore = getCertStore();
348
349
// TODO: handle tmp_dh_callback :
@@ -513,6 +508,8 @@ public IRubyObject setup(final ThreadContext context) {
513
508
throw newSSLError(runtime, e);
514
509
}
515
510
511
+ this.freeze(context);
512
+
516
return runtime.getTrue();
517
518
0 commit comments