Engine_wipeClient: async -> sync. Engine__wipeClient: async/yield -> sync.

This commit is contained in:
Edward Lee 2009-06-05 15:34:35 -07:00
parent a5bc6c458e
commit 301d62f2bb
2 changed files with 3 additions and 5 deletions

View File

@ -211,15 +211,13 @@ Engine.prototype = {
},
_wipeClient: function Engine__wipeClient() {
let self = yield;
this.resetClient();
this._log.debug("Deleting all local data");
this._store.wipe();
},
wipeClient: function Engine_wipeClient(onComplete) {
this._notifyAsync("wipe-client", this.name, this._wipeClient).async(this, onComplete);
wipeClient: function Engine_wipeClient() {
this._notify("wipe-client", this.name, this._wipeClient)();
}
};

View File

@ -1046,7 +1046,7 @@ WeaveSvc.prototype = {
// Fully wipe each engine
for each (let engine in engines)
yield engine.wipeClient(self.cb);
engine.wipeClient();
};
this._catchAll(this._notify("wipe-client", "", fn)).async(this, onComplete);
},