chore: remove unneded func param

This commit is contained in:
iCrawl 2019-08-03 14:16:52 +02:00
parent 7e8ea061aa
commit cbe02d20d5
No known key found for this signature in database
GPG key ID: E41A6DB922EC2CFE

View file

@ -66,7 +66,7 @@ export default class RPCClient implements Disposable {
await this._activity.disableJoinRequests(); await this._activity.disableJoinRequests();
} }
public async login(reconnect: boolean = false): Promise<void> { public async login(): Promise<void> {
if (this._rpc) return; if (this._rpc) return;
this._rpc = new Client({ transport: 'ipc' }); this._rpc = new Client({ transport: 'ipc' });
Logger.log('Logging into RPC.'); Logger.log('Logging into RPC.');
@ -146,8 +146,6 @@ export default class RPCClient implements Disposable {
this._rpc.transport.once('close', async () => { this._rpc.transport.once('close', async () => {
if (!this.config.get<boolean>('enabled')) return; if (!this.config.get<boolean>('enabled')) return;
if (reconnect) return;
console.log('called close', reconnect);
await this.dispose(); await this.dispose();
this.statusBarIcon.text = '$(plug) Reconnect to Discord'; this.statusBarIcon.text = '$(plug) Reconnect to Discord';
this.statusBarIcon.command = 'discord.reconnect'; this.statusBarIcon.command = 'discord.reconnect';