Only populate workersData if messageId is "resubmit"
This is done to avoid clash with UrlClassifier
This commit is contained in:
Родитель
71c82aeeb2
Коммит
14a803efc9
|
@ -111,10 +111,9 @@ HistoryReader.prototype = {
|
|||
|
||||
_handleInterestsResults: function I__handleInterestsResults(aData) {
|
||||
Task.spawn(function() {
|
||||
// save classification results in _workersData array untill all have responded
|
||||
this._workersData.push(aData);
|
||||
// and check if this is the last interest in the resubmit bunch
|
||||
if (aData.messageId == "resubmit") {
|
||||
// save classification results in _workersData array untill all have responded
|
||||
this._workersData.push(aData);
|
||||
// decrement url count and check if we have seen them all
|
||||
this._ResubmitRecentHistoryUrlCount--;
|
||||
if (this._ResubmitRecentHistoryUrlCount == 0) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче