1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Be sure to empty the drain the todo before shutting down. Fixes #155

This commit is contained in:
Evan Phoenix 2012-10-12 23:05:23 -07:00
parent 3a4ce8e38d
commit 3726bc4f18

View file

@ -82,11 +82,6 @@ module Puma
@waiting += 1
cond.wait mutex
@waiting -= 1
if @shutdown
continue = false
break
end
end
work = todo.pop if continue