Skip to content

Commit

Permalink
Correct example title
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed Jul 17, 2011
1 parent 14b9f5b commit 170b9f5
Showing 1 changed file with 2 additions and 5 deletions.
Expand Up @@ -4,7 +4,7 @@
__dir = File.dirname(File.expand_path(__FILE__))
require File.join(__dir, "..", "example_helper")

amq_client_example "Declare a new fanout exchange" do |connection|
amq_client_example "Handling a channel-level exception" do |connection|
channel = AMQ::Client::Channel.new(connection, 1)
channel.open do
puts "Channel #{channel.id} is now open!"
Expand All @@ -30,10 +30,7 @@

show_stopper = Proc.new do
$stdout.puts "Stopping..."

connection.close {
EM.stop { exit }
}
connection.close { EventMachine.stop }
end

Signal.trap "INT", show_stopper
Expand Down

0 comments on commit 170b9f5

Please sign in to comment.