sleep only if we didn't get any new messages last time