Bug 1393483 - Correctly pass cancel token to _onResultRow. r=mak

This commit is contained in:
Simon Lindholm 2017-08-24 08:20:00 -04:00
parent d96b3aa550
commit 0c65735985

View File

@ -1380,9 +1380,9 @@ Search.prototype = {
// like a URL, then we'll probably have a result.
let gotResult = false;
let [ query, params ] = this._urlQuery;
await conn.executeCached(query, params, row => {
await conn.executeCached(query, params, (row, cancel) => {
gotResult = true;
this._onResultRow(row);
this._onResultRow(row, cancel);
});
return gotResult;
}
@ -1391,9 +1391,9 @@ Search.prototype = {
let gotResult = false;
let [ query, params ] = this._hostQuery;
await conn.executeCached(query, params, row => {
await conn.executeCached(query, params, (row, cancel) => {
gotResult = true;
this._onResultRow(row);
this._onResultRow(row, cancel);
});
return gotResult;
},