moved top seq num check after increment to avoid last packet infinite retransmit