diff options
Diffstat (limited to 'app/lib')
| -rw-r--r-- | app/lib/backend.js | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/app/lib/backend.js b/app/lib/backend.js index 0aa8ccf37e..0766c37b4c 100644 --- a/app/lib/backend.js +++ b/app/lib/backend.js @@ -308,7 +308,7 @@ export default class Backend extends EventEmitter { */ logout() { // @TODO: What does it mean for a logout to be successful or failed? - this._ipc.send('logout') + this._ipc.send('set_account', '') .then(() => { this._paidUntil = null; @@ -316,7 +316,7 @@ export default class Backend extends EventEmitter { this.emit(Backend.EventType.logout); // disconnect user during logout - this.disconnect(); + return this.disconnect(); }) .catch(e => { log.info('Failed to logout', e); @@ -360,12 +360,6 @@ export default class Backend extends EventEmitter { */ disconnect() { // @TODO: Failure modes - this._ipc.send('cancelConnection') - .catch(e => { - log.info('Failed cancelling connection', e); - }); - - // @TODO: Failure modes this._ipc.send('disconnect') .then(() => { // emit: disconnect |
