diff options
author | benoit-germain <bnt.germain@gmail.com> | 2012-06-20 12:10:54 +0300 |
---|---|---|
committer | benoit-germain <bnt.germain@gmail.com> | 2012-06-20 12:10:54 +0300 |
commit | fc20e54ac64569ad53118084a2b0615f84eed5b1 (patch) | |
tree | 1c5c1cf423c29904e2e1adc75278ebd56ccd4adf | |
parent | cb7296abea6ed8a2c29995a8ae12c190ff492c86 (diff) | |
download | lanes-fc20e54ac64569ad53118084a2b0615f84eed5b1.tar.gz lanes-fc20e54ac64569ad53118084a2b0615f84eed5b1.tar.bz2 lanes-fc20e54ac64569ad53118084a2b0615f84eed5b1.zip |
fix abusive internal error message displayed when the timer lane decides it has to wake up in 0ms or when timer lane is cancelled.
-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 b5d8792..dffd017 100644 --- a/src/lanes.lua +++ b/src/lanes.lua | |||
@@ -450,8 +450,8 @@ if first_time then | |||
450 | assert( key and wakeup_at and period ) | 450 | assert( key and wakeup_at and period ) |
451 | 451 | ||
452 | set_timer( linda, key, wakeup_at, period>0 and period or nil ) | 452 | set_timer( linda, key, wakeup_at, period>0 and period or nil ) |
453 | elseif secs == 0 then -- got no value while block-waiting? | 453 | --elseif secs == nil then -- got no value while block-waiting? |
454 | WR( "timer lane: no linda, aborted?") | 454 | -- WR( "timer lane: no linda, aborted?") |
455 | end | 455 | end |
456 | end | 456 | end |
457 | end )() | 457 | end )() |