From 4c717f0873a93a815f1ad36191b25fd4674e315b Mon Sep 17 00:00:00 2001 From: Tyler Brock Date: Mon, 23 Apr 2012 16:58:11 -0400 Subject: [PATCH] RUBY-436 Handle IRB::Abort Exception --- lib/mongo/networking.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mongo/networking.rb b/lib/mongo/networking.rb index 62cee62..6ec1601 100644 --- a/lib/mongo/networking.rb +++ b/lib/mongo/networking.rb @@ -137,7 +137,7 @@ module Mongo send_message_on_socket(packed_message, sock) result = receive(sock, request_id, exhaust) - rescue SystemStackError, NoMemoryError, SystemCallError => ex + rescue SystemStackError, NoMemoryError, SystemCallError, IRB::Abort => ex close raise ex ensure