RUBY-436 Handle IRB::Abort Exception
This commit is contained in:
parent
ecafeed637
commit
b3a9d93096
|
@ -140,6 +140,11 @@ module Mongo
|
|||
rescue SystemStackError, NoMemoryError, SystemCallError => ex
|
||||
close
|
||||
raise ex
|
||||
rescue Exception => ex
|
||||
if defined?(IRB)
|
||||
close if ex.class == IRB::Abort
|
||||
end
|
||||
raise ex
|
||||
ensure
|
||||
if should_checkin
|
||||
if command || read == :primary
|
||||
|
|
Loading…
Reference in New Issue