dont sleep if there are still messages to process