Skip to content

Commit

Permalink
Don't touch consumers that work in the other (non disconnect) session.
Browse files Browse the repository at this point in the history
  • Loading branch information
unera committed Dec 26, 2016
1 parent 9796515 commit 05d9325
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions queue/abstract.lua
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,10 @@ function method._on_consumer_disconnect()
if waiter == nil then
break
end
-- Don't touch the other consumers
if waiter[1] ~= id then
break
end
box.space._queue_consumers:delete{ waiter[1], waiter[2] }
fb = fiber.find(waiter[2])
if fb ~= nil and fb:status() ~= 'dead' then
Expand Down

0 comments on commit 05d9325

Please sign in to comment.