lib/amq/client/channel.rb in amq-client-0.7.0.alpha4 vs lib/amq/client/channel.rb in amq-client-0.7.0.alpha5

- old
+ new

@@ -210,11 +210,11 @@ # Defines a callback that will be executed when channel is closed after # channel-level exception. # # @api public def on_error(&block) - self.define_callback(:close, &block) + self.define_callback(:error, &block) end # # Implementation @@ -276,10 +276,10 @@ self.exec_callback_once_yielding_self(:close, method) end def handle_close(method, exception = nil) self.status = :closed - self.exec_callback_once_yielding_self(:close, method) + self.exec_callback_yielding_self(:error, method) self.handle_connection_interruption(exception) end # === Handlers ===