Bug 682446 - Wait a little before we trigger the Sync call to be sure elements are ready to be synced. r=hskupin DONTBUILD

---
 services/sync/tps/extensions/tps/resource/tps.jsm | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)
This commit is contained in:
Cosmin Malutan 2014-08-28 11:24:01 +02:00
parent 6c0c232767
commit 3b2bdcafa8

View File

@ -300,12 +300,7 @@ let TPS = {
Logger.logInfo("tab for " + taburi + " finished loading");
if (that._tabsFinished == that._tabsAdded) {
Logger.logInfo("all tabs loaded, continuing...");
// Wait a second before continuing to be sure tabs can be synced,
// otherwise we can get 'error locating tab'
Utils.namedTimer(function () {
that.FinishAsyncOperation();
}, 1000, this, "postTabsOpening");
that.FinishAsyncOperation();
}
});
break;
@ -895,7 +890,13 @@ let TPS = {
this._triggeredSync = true;
this.StartAsyncOperation();
Weave.Service.sync();
// Bug 682446
// We wait a little before we trigger the Sync call to be sure elements are
// ready to be synced
Utils.namedTimer(function () {
Weave.Service.sync();
}, 2500, this, "beforeSyncDelay");
},
WipeServer: function TPS__WipeServer() {