Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion xqueue.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1504,7 +1504,7 @@ function methods:take(timeout, opts)
local left = (now + timeout) - fiber.time()
if left <= 0 then goto finish end

(tube_chan or xq.take_wait):get(left)
(tube_chan and not tube_chan:is_closed() or xq.take_wait):get(left)
if box.session.storage.destroyed then goto finish end
end
end
Expand Down