Bug 1079341 - Missing yield on async makeDir in FHR state init. r=gps, a=lmandel
authorGeorg Fritzsche <georg.fritzsche@googlemail.com>
Fri, 10 Oct 2014 17:21:18 +0200
changeset 225899 d9b49c7ee7fe
parent 225898 d4ad7d727dd6
child 225900 8fbc0d8bb83d
push id4063
push usergeorg.fritzsche@googlemail.com
push date2014-11-02 23:54 +0000
treeherdermozilla-beta@1ca39da5df9d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgps, lmandel
bugs1079341
milestone34.0
Bug 1079341 - Missing yield on async makeDir in FHR state init. r=gps, a=lmandel
services/healthreport/healthreporter.jsm
--- a/services/healthreport/healthreporter.jsm
+++ b/services/healthreport/healthreporter.jsm
@@ -122,18 +122,18 @@ HealthReporterState.prototype = Object.f
     return this._s.remoteIDs;
   },
 
   get _lastPayloadPath() {
     return OS.Path.join(this._stateDir, "lastpayload.json");
   },
 
   init: function () {
-    return Task.spawn(function init() {
-      OS.File.makeDir(this._stateDir);
+    return Task.spawn(function* init() {
+      yield OS.File.makeDir(this._stateDir);
 
       let resetObjectState = function () {
         this._s = {
           // The payload version. This is bumped whenever there is a
           // backwards-incompatible change.
           v: 1,
           // The persistent client identifier.
           clientID: CommonUtils.generateUUID(),