Only populate workersData if messageId is "resubmit"

This is done to avoid clash with UrlClassifier
This commit is contained in:
Maxim Zhilyaev 2014-05-01 12:24:53 -07:00 коммит произвёл Ed Lee
Родитель 71c82aeeb2
Коммит 14a803efc9
1 изменённых файлов: 2 добавлений и 3 удалений

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

@ -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) {