From cbe02d20d59acee049fcfc033f0797e323dc2cad Mon Sep 17 00:00:00 2001 From: iCrawl Date: Sat, 3 Aug 2019 14:16:52 +0200 Subject: [PATCH] chore: remove unneded func param --- src/client/RPCClient.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/client/RPCClient.ts b/src/client/RPCClient.ts index d32fc82..615354d 100644 --- a/src/client/RPCClient.ts +++ b/src/client/RPCClient.ts @@ -66,7 +66,7 @@ export default class RPCClient implements Disposable { await this._activity.disableJoinRequests(); } - public async login(reconnect: boolean = false): Promise { + public async login(): Promise { if (this._rpc) return; this._rpc = new Client({ transport: 'ipc' }); Logger.log('Logging into RPC.'); @@ -146,8 +146,6 @@ export default class RPCClient implements Disposable { this._rpc.transport.once('close', async () => { if (!this.config.get('enabled')) return; - if (reconnect) return; - console.log('called close', reconnect); await this.dispose(); this.statusBarIcon.text = '$(plug) Reconnect to Discord'; this.statusBarIcon.command = 'discord.reconnect';