added switching to worker queue when current polled queue is not empty