examples/amqp/simple.rb in tmm1-amqp-0.5.3 vs examples/amqp/simple.rb in tmm1-amqp-0.5.5
- old
+ new
@@ -70,8 +70,10 @@
end
end
end
end
-AMQP.logging = true
-AMQP.client = SimpleClient
-AMQP.start
+EM.run{
+ AMQP.logging = true
+ AMQP.client = SimpleClient
+ AMQP.start
+}
\ No newline at end of file