Skip to content

Commit 4fcce31

Browse files
Add extra argument to timer thread lambdas
The Timer gem uses two arguments. The lambda originally accepted 1.
1 parent 2b1020d commit 4fcce31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

librb/engine.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,7 +1083,7 @@ def start_dispatch_timers_thread
10831083

10841084
timer = Timers::Group.new
10851085

1086-
thread_lambda = -> c {
1086+
thread_lambda = -> c, _t {
10871087
if @ruleset_list.empty?
10881088
timer.after 0.5, &thread_lambda
10891089
else
@@ -1116,7 +1116,7 @@ def start_dispatch_ruleset_thread
11161116

11171117
timer = Timers::Group.new
11181118

1119-
thread_lambda = -> c {
1119+
thread_lambda = -> c, _t {
11201120
if @ruleset_list.empty?
11211121
timer.after 0.5, &thread_lambda
11221122
else

0 commit comments

Comments
 (0)