File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/org/jruby/ext/openssl Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -315,7 +315,7 @@ public SSLContext(Ruby runtime, RubyClass type) {
315
315
//private int sessionCacheMode; // 2 default on MRI
316
316
private int sessionCacheSize ; // 20480
317
317
318
- private InternalContext internalContext ;
318
+ private volatile InternalContext internalContext ;
319
319
320
320
@ JRubyMethod (required = 0 , optional = 1 , visibility = Visibility .PRIVATE )
321
321
public IRubyObject initialize (IRubyObject [] args ) {
@@ -334,7 +334,7 @@ public IRubyObject initialize_copy(IRubyObject original) {
334
334
final SSLContext initializeImpl () { return this ; }
335
335
336
336
@ JRubyMethod
337
- public IRubyObject setup (final ThreadContext context ) {
337
+ public synchronized IRubyObject setup (final ThreadContext context ) {
338
338
final Ruby runtime = context .runtime ;
339
339
340
340
if ( isFrozen () ) return runtime .getNil ();
You can’t perform that action at this time.
0 commit comments