mirror of
http://git.whoc.org.uk/git/password-manager.git
synced 2024-11-14 18:39:01 +01:00
Fixed logout error handling
This commit is contained in:
parent
ae973776ee
commit
a67d190927
@ -431,10 +431,15 @@ Clipperz.PM.Connection.SRP['1.0'].prototype = MochiKit.Base.update(new Clipperz.
|
||||
//=========================================================================
|
||||
|
||||
'logout': function() {
|
||||
return Clipperz.Async.callbacks("Connection.logout", [
|
||||
MochiKit.Base.method(this, 'setSharedSecret'),
|
||||
MochiKit.Base.method(this.proxy(), 'logout', {})
|
||||
], {trace:false});
|
||||
var deferredResult;
|
||||
|
||||
deferredResult = new Clipperz.Async.Deferred("Connection.login", {trace:false});
|
||||
deferredResult.addMethod(this, 'setSharedSecret');
|
||||
deferredResult.addMethod(this.proxy(), 'logout', {});
|
||||
deferredResult.addErrback(function (aResult) { Clipperz.log("Ignored error while logging out"); return {}; });
|
||||
deferredResult.callback();
|
||||
|
||||
return deferredResult;
|
||||
},
|
||||
|
||||
//=========================================================================
|
||||
|
Loading…
Reference in New Issue
Block a user