Remove deprecated processing sleep. Only wait if queues are empty.