diff options
Diffstat (limited to 'src/lanes.lua')
-rw-r--r-- | src/lanes.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lanes.lua b/src/lanes.lua index c9ab07d..20168b8 100644 --- a/src/lanes.lua +++ b/src/lanes.lua | |||
@@ -488,10 +488,10 @@ if first_time then | |||
488 | secs = next_wakeup - now_secs() | 488 | secs = next_wakeup - now_secs() |
489 | if secs < 0 then secs = 0 end | 489 | if secs < 0 then secs = 0 end |
490 | end | 490 | end |
491 | local linda = timer_gateway:receive( secs, TGW_KEY) | 491 | local _, linda = timer_gateway:receive( secs, TGW_KEY) |
492 | 492 | ||
493 | if linda then | 493 | if linda then |
494 | local key, wakeup_at, period = timer_gateway:receive( 0, timer_gateway_batched, TGW_KEY, 3) | 494 | local _, key, wakeup_at, period = timer_gateway:receive( 0, timer_gateway_batched, TGW_KEY, 3) |
495 | assert( key) | 495 | assert( key) |
496 | set_timer( linda, key, wakeup_at, period and period > 0 and period or nil) | 496 | set_timer( linda, key, wakeup_at, period and period > 0 and period or nil) |
497 | --elseif secs == nil then -- got no value while block-waiting? | 497 | --elseif secs == nil then -- got no value while block-waiting? |