summaryrefslogtreecommitdiffstats
path: root/services/sync/modules/service.js
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-07-15 07:05:26 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-07-15 07:05:26 +0200
commit422a3cda0caacd3b9397c5eaf1af0262f02308f8 (patch)
tree8f03314159f4ccde4571f86b6ee91e300cb98a52 /services/sync/modules/service.js
parentcac6931d807b7ddce45ee050a3c0c47a933ab523 (diff)
downloadUXP-422a3cda0caacd3b9397c5eaf1af0262f02308f8.tar
UXP-422a3cda0caacd3b9397c5eaf1af0262f02308f8.tar.gz
UXP-422a3cda0caacd3b9397c5eaf1af0262f02308f8.tar.lz
UXP-422a3cda0caacd3b9397c5eaf1af0262f02308f8.tar.xz
UXP-422a3cda0caacd3b9397c5eaf1af0262f02308f8.zip
Don't try to fetch FxA migration sentinel from non-supporting server.
This resolves #522.
Diffstat (limited to 'services/sync/modules/service.js')
-rw-r--r--services/sync/modules/service.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/sync/modules/service.js b/services/sync/modules/service.js
index f8c64b0fa..32e047f53 100644
--- a/services/sync/modules/service.js
+++ b/services/sync/modules/service.js
@@ -1338,9 +1338,10 @@ Sync11Service.prototype = {
// We successfully synchronized.
// Check if the identity wants to pre-fetch a migration sentinel from
// the server.
+ // Only supported by Sync server API level 2+
// If we have no clusterURL, we are probably doing a node reassignment
// so don't attempt to get it in that case.
- if (this.clusterURL) {
+ if (Svc.Prefs.get("APILevel") >= 2 && this.clusterURL) {
this.identity.prefetchMigrationSentinel(this);
}