mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
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:
parent
6c0c232767
commit
3b2bdcafa8
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user