Skip to content

Commit

Permalink
Use execute() method to start polling thread
Browse files Browse the repository at this point in the history
  • Loading branch information
kattrali committed Jan 10, 2018
1 parent 6cf4df5 commit f09e259
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bugsnag/session_tracker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def start_delivery_thread
end
end
end
@delivery_thread = Concurrent::TimerTask.new(execution_interval: 30) do
@delivery_thread = Concurrent::TimerTask.execute(execution_interval: 30) do
if @session_counts.size > 0
send_sessions
end
Expand Down

0 comments on commit f09e259

Please sign in to comment.