lib/mongo/socket/unix.rb in mongo-2.0.6 vs lib/mongo/socket/unix.rb in mongo-2.1.0.beta
- old
+ new
@@ -37,10 +37,10 @@
# @return [ Unix ] The connected socket instance.
#
# @since 2.0.0
def connect!
Timeout.timeout(timeout, Error::SocketTimeoutError) do
- socket.connect(path)
+ handle_errors { socket.connect(path) }
self
end
end
# Initializes a new Unix socket.