lib/punchblock/console/cli.rb in punchblock-console-0.1.1 vs lib/punchblock/console/cli.rb in punchblock-console-0.1.2
- old
+ new
@@ -66,9 +66,10 @@
Thread.new do
loop do
event = client.event_queue.pop
case event
when Connection::Connected
+ connection.ready!
puts "Punchblock connected!"
when Event::Offer
raise "Duplicate call ID for #{event.call_id}" if call_queues.has_key?(event.call_id)
call_queues[event.call_id] = Queue.new
call_queues[event.call_id].push event