Bug 696633 - Port |Bug 678586 - Trigger a delayed sync after pairing a new device|. r=IanN a=Callek
authorJens Hatlak <jh@junetz.de>
Wed, 26 Oct 2011 23:43:45 +0200
changeset 8953 6fc3c7961a451919971d9d24d98d78227a149a31
parent 8950 f9c9a95a86bce5fb1881a30e42b7dde06fa4b9e0
child 8954 47af4afca66a7b1130676ad673fc7a8db69d9b08
push id205
push userjh@junetz.de
push dateWed, 26 Oct 2011 21:56:39 +0000
treeherdercomm-beta@6fc3c7961a45 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersIanN, Callek
bugs696633, 678586
Bug 696633 - Port |Bug 678586 - Trigger a delayed sync after pairing a new device|. r=IanN a=Callek
suite/common/sync/syncAddDevice.js
--- a/suite/common/sync/syncAddDevice.js
+++ b/suite/common/sync/syncAddDevice.js
@@ -98,16 +98,20 @@ let gSyncAddDevice = {
 
   startTransfer: function startTransfer() {
     this.errorRow.hidden = true;
     let self = this;
     this._jpakeclient = new Weave.JPAKEClient({
       onComplete: function onComplete() {
         delete self._jpakeclient;
         self.wizard.pageIndex = DEVICE_CONNECTED_PAGE;
+
+        // Schedule a sync for soonish to fetch the data uploaded by the
+        // device with which we just paired.
+        Weave.SyncScheduler.scheduleNextSync(Weave.SyncScheduler.activeInterval);
       },
       onAbort: function onAbort(error) {
         delete self._jpakeclient;
 
         // Aborted by user, ignore.
         if (!error)
           return;