for bug #251, add min msgs for queue cond wait.