Bug 1384818 - flush sync log files on sync reset. r=eoger

MozReview-Commit-ID: H6CkvHGxAmx

--HG--
extra : rebase_source : 4fd55ac857c225e0a7de35f0049e873cc362b2db
This commit is contained in:
Mark Hammond 2017-07-27 14:57:47 +10:00
Родитель eafa227d8d
Коммит 4f86008efc
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -599,6 +599,7 @@ ErrorHandler.prototype = {
Svc.Obs.add("weave:service:login:error", this);
Svc.Obs.add("weave:service:sync:error", this);
Svc.Obs.add("weave:service:sync:finish", this);
Svc.Obs.add("weave:service:start-over:finish", this);
this.initLogs();
},
@ -716,6 +717,10 @@ ErrorHandler.prototype = {
this.dontIgnoreErrors = false;
this.notifyOnNextTick("weave:ui:sync:finish");
break;
case "weave:service:start-over:finish":
// ensure we capture any logs between the last sync and the reset completing.
this.resetFileLog();
break;
}
},