Skip to content

Commit 04fbff3

Browse files
TylerBrockBrandon Black
authored andcommitted
RUBY-556 fix potential deadlocks with broadcast
1 parent 7debdee commit 04fbff3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mongo/util/pool.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def ping
166166
def checkin(socket)
167167
@connection_mutex.synchronize do
168168
if @checked_out.delete(socket)
169-
@queue.signal
169+
@queue.broadcast
170170
else
171171
return false
172172
end

0 commit comments

Comments
 (0)