RUBY-433 fixes IOError stream closed
This commit is contained in:
parent
a5b5d5e3e3
commit
4f9aceacf4
|
@ -217,7 +217,9 @@ module Mongo
|
|||
if @pids[socket] != Process.pid
|
||||
@pids[socket] = nil
|
||||
@sockets.delete(socket)
|
||||
socket.close if socket
|
||||
if socket
|
||||
socket.close unless socket.closed?
|
||||
end
|
||||
checkout_new_socket
|
||||
else
|
||||
@checked_out << socket
|
||||
|
|
Loading…
Reference in New Issue