lib/connection/utils.rb in stomp-1.4.8 vs lib/connection/utils.rb in stomp-1.4.9
- old
+ new
@@ -250,9 +250,10 @@
connread = false
noiosel = (@ssl || @jruby) ? true : false
return _receive(used_socket, connread, noiosel)
rescue Stomp::Error::MaxReconnectAttempts
+ @failure = $!
unless slog(:on_miscerr, log_params, "Reached MaxReconnectAttempts")
$stderr.print "Reached MaxReconnectAttempts\n"
end
raise
rescue