Don't try to fetch FxA migration sentinel from non-supporting server.

This resolves #522.
This commit is contained in:
wolfbeast 2018-07-15 07:05:26 +02:00 • committed by Roy Tam
commit f9daa51971

View file

@ -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);
}