Fixes the polling code to allow multiple queues to be worked on in the same processes. This feature became broken when the looping around a named list was introduced.