reset lastSync pref before setting it, as some clients have mismatched types saved

This commit is contained in:
Dan Mills 2009-02-23 19:33:40 -08:00
Родитель a035048b96
Коммит e8c14a7b1b
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -201,6 +201,7 @@ SyncEngine.prototype = {
return Svc.Prefs.get(this.name + ".lastSync", 0);
},
set lastSync(value) {
Svc.Prefs.reset(this.name + ".lastSync");
if (typeof(value) == "string")
value = parseInt(value);
Svc.Prefs.set(this.name + ".lastSync", value);