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
Родитель d96b3aa550
Коммит 0c65735985
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -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;
},