lib/connection/utils.rb in stomp-1.3.4 vs lib/connection/utils.rb in stomp-1.3.5

- old
+ new

@@ -243,21 +243,26 @@ raise rescue @failure = $! raise unless @reliable errstr = "receive failed: #{$!}" - unless slog(:on_miscerr, log_params, "es_oldrecv: " + errstr) - $stderr.print errstr - end + unless slog(:on_miscerr, log_params, "es1_oldrecv: " + errstr) + $stderr.print "\non_miscerr\n" + $stderr.print log_params.inspect + $stderr.print "\n" + $stderr.print "es2_oldrecv: " + errstr + $stderr.print "\n" + end # !!! This initiates a re-connect !!! _reconn_prep() end end end # _reconn_prep prepares for a reconnect retry def _reconn_prep() + close_socket() if @parameters change_host() end @st.kill if @st # Kill ticker thread if any @rt.kill if @rt # Kill ticker thread if any