diff options
Diffstat (limited to 'src/lanes-keeper.lua')
-rw-r--r-- | src/lanes-keeper.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lanes-keeper.lua b/src/lanes-keeper.lua index b07d6a9..a03ef4b 100644 --- a/src/lanes-keeper.lua +++ b/src/lanes-keeper.lua | |||
@@ -187,7 +187,7 @@ function receive( ud, ...) | |||
187 | if fifo and fifo.count > 0 then | 187 | if fifo and fifo.count > 0 then |
188 | local val = fifo_pop( fifo, 1) | 188 | local val = fifo_pop( fifo, 1) |
189 | if val ~= nil then | 189 | if val ~= nil then |
190 | return val, key | 190 | return key, val |
191 | end | 191 | end |
192 | end | 192 | end |
193 | end | 193 | end |
@@ -207,7 +207,7 @@ receive_batched = function( ud, key, min_count, max_count) | |||
207 | if fifo_count >= min_count then | 207 | if fifo_count >= min_count then |
208 | max_count = max_count or min_count | 208 | max_count = max_count or min_count |
209 | max_count = (max_count > fifo_count) and fifo_count or max_count | 209 | max_count = (max_count > fifo_count) and fifo_count or max_count |
210 | return fifo_pop( fifo, max_count) | 210 | return key, fifo_pop( fifo, max_count) |
211 | end | 211 | end |
212 | end | 212 | end |
213 | end | 213 | end |