given above comments, perhaps something like:
```
if (this.isResending) {
  this.resendReceived++;
  this.isResending = (this.resendReceived < this.resendExpecting);
}