lib/adhearsion/process.rb in adhearsion-2.0.0.rc2 vs lib/adhearsion/process.rb in adhearsion-2.0.0.rc3
- old
+ new
@@ -71,10 +71,10 @@
Events.trigger_immediately :stop_requested
important_threads << Thread.new { stop_when_zero_calls }
end
def final_shutdown
- Adhearsion.active_calls.each do |call|
+ Adhearsion.active_calls.each do |_, call|
call.hangup!
end
# This should shut down any remaining threads. Once those threads have
# stopped, important_threads will be empty and the process will exit