Commit 1fdff9eb authored by sammc's avatar sammc Committed by Commit bot

Fix a bug in data_sender.js.

This fixes a bug where data sends that had been fully written to the
data pipe were not considered when deciding whether to cancel (or wait
for an in-progress cancel) during DataSender serialization.

Review URL: https://codereview.chromium.org/678223002

Cr-Commit-Position: refs/heads/master@{#301537}
parent ca92d1ea
......@@ -296,7 +296,7 @@ define('data_sender', [
return Promise.resolve(null);
var readyToSerialize = Promise.resolve();
if (this.pendingSends_.length) {
if (this.pendingSends_.length || this.sendsAwaitingAck_.length) {
if (this.pendingCancel_)
readyToSerialize = this.cancelPromise_;
else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment