If this is true then you should check `*maxInFlight <= 0`