Skip to content

Commit

Permalink
make sure there actually is a Digest::REQUIRE_MUTEX
Browse files Browse the repository at this point in the history
needed since d5f0387

... additional part for the #1279 fix (on JRuby 1.7)
kares committed Jun 30, 2016
1 parent 97aee10 commit be2d492
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/ruby/1.9/digest.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
require 'digest.so'

module Digest
# A mutex for Digest().
REQUIRE_MUTEX = Mutex.new

def self.const_missing(name) # :nodoc:
Digest::REQUIRE_MUTEX.synchronize do
case name

0 comments on commit be2d492

Please sign in to comment.