We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b32a4fa commit e5db3f2Copy full SHA for e5db3f2
1 file changed
src/main/java/org/jruby/ext/openssl/SSLContext.java
@@ -334,10 +334,15 @@ public IRubyObject initialize_copy(IRubyObject original) {
334
final SSLContext initializeImpl() { return this; }
335
336
@JRubyMethod
337
- public synchronized IRubyObject setup(final ThreadContext context) {
338
- final Ruby runtime = context.runtime;
+ public IRubyObject setup(final ThreadContext context) {
+ if (isFrozen()) return context.nil;
339
+ return doSetup(context);
340
+ }
341
- if ( isFrozen() ) return runtime.getNil();
342
+ private synchronized IRubyObject doSetup(final ThreadContext context) {
343
344
+
345
+ final Ruby runtime = context.runtime;
346
347
final X509Store certStore = getCertStore();
348
0 commit comments