Skip to content

Commit

Permalink
Merge pull request #362 from airbrake/race-fix
Browse files Browse the repository at this point in the history
route_sender: fix possible race with increment_stats
  • Loading branch information
kyrylo authored Nov 19, 2018
2 parents 8deb649 + 71b2557 commit 17b1b6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/airbrake-ruby/route_sender.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 17b1b6b

Please sign in to comment.