lib/punchblock/connection/asterisk.rb in punchblock-1.9.1 vs lib/punchblock/connection/asterisk.rb in punchblock-1.9.2
- old
+ new
@@ -13,10 +13,11 @@
@translator = Translator::Asterisk.new @ami_client, self, options[:media_engine]
super()
end
def run
- ami_client.run
+ ami_client.async.run
+ Celluloid::Actor.join(ami_client)
raise DisconnectedError
end
def stop
translator.async.shutdown