diff options
Diffstat (limited to 'src/lanes.lua')
-rw-r--r-- | src/lanes.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lanes.lua b/src/lanes.lua index 6a4f149..48ebeb6 100644 --- a/src/lanes.lua +++ b/src/lanes.lua | |||
@@ -792,7 +792,8 @@ local genatomic = function(linda_, key_, initial_val_) | |||
792 | if val ~= cancel_error then | 792 | if val ~= cancel_error then |
793 | val = val + (diff_ or 1.0) | 793 | val = val + (diff_ or 1.0) |
794 | -- set() releases the lock by emptying queue | 794 | -- set() releases the lock by emptying queue |
795 | if linda_:set(key_, val) == cancel_error then | 795 | local _res, _err = linda_:set(key_, val) |
796 | if _err == cancel_error then | ||
796 | val = cancel_error | 797 | val = cancel_error |
797 | end | 798 | end |
798 | end | 799 | end |