diff --git a/lib/airbrake-ruby/route_sender.rb b/lib/airbrake-ruby/route_sender.rb index 155eb5d8..a5e63461 100644 --- a/lib/airbrake-ruby/route_sender.rb +++ b/lib/airbrake-ruby/route_sender.rb @@ -142,9 +142,9 @@ def schedule_flush(promise) routes = @routes @routes = {} @thread = nil - end - send(routes, promise) + send(routes, promise) + end end # Setting a name is needed to test the timer.