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
|
rescue SystemStackError, NoMemoryError, SystemCallError => ex
|
||||||
close
|
close
|
||||||
raise ex
|
raise ex
|
||||||
|
rescue Exception => ex
|
||||||
|
if defined?(IRB)
|
||||||
|
close if ex.class == IRB::Abort
|
||||||
|
end
|
||||||
|
raise ex
|
||||||
ensure
|
ensure
|
||||||
if should_checkin
|
if should_checkin
|
||||||
if command || read == :primary
|
if command || read == :primary
|
||||||
|
|
Loading…
Reference in New Issue