Skip to content

Commit

Permalink
Typo for rustpluslite disconnect event
Browse files Browse the repository at this point in the history
  • Loading branch information
alexemanuelol committed Aug 29, 2023
1 parent a76fb77 commit 53d4407
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rustplusEvents/disconnected.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ module.exports = {
const serverId = rustplus.serverId;

if (rustplus.leaderRustPlusInstance !== null) {
if (Client.client.rustplusLiteReconnectTimers[this.guildId]) {
clearTimeout(Client.client.rustplusLiteReconnectTimers[this.guildId]);
Client.client.rustplusLiteReconnectTimers[this.guildId] = null;
if (client.rustplusLiteReconnectTimers[guildId]) {
clearTimeout(client.rustplusLiteReconnectTimers[guildId]);
client.rustplusLiteReconnectTimers[guildId] = null;
}
rustplus.leaderRustPlusInstance.isActive = false;
rustplus.leaderRustPlusInstance.disconnect();
Expand Down

0 comments on commit 53d4407

Please sign in to comment.