Skip to content

Commit

Permalink
Fix type-o in friend interval
Browse files Browse the repository at this point in the history
```ts
if (!this.fullOfFriends.has(account.token.userXUID))
					if (!account.isTokenRefreshing)
						if (this.doingDuplicateFriendCheck) {
```
->
```ts
if (!(this.fullOfFriends.has(account.token.userXUID) || account.isTokenRefreshing || this.doingDuplicateFriendCheck)) {
```
  • Loading branch information
DJStompZone committed Sep 1, 2022
1 parent 315e1fb commit 30c6cc0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1889,9 +1889,7 @@ class Session extends EventEmitter {
setFriendInterval(accounts: IterableIterator<XboxLiveClient>) {
setInterval(() => {
for (let account of accounts) {
if (!this.fullOfFriends.has(account.token.userXUID))
if (!account.isTokenRefreshing)
if (this.doingDuplicateFriendCheck) {
if (!(this.fullOfFriends.has(account.token.userXUID) || account.isTokenRefreshing || this.doingDuplicateFriendCheck)) {
this.doingAutoFriendInterval = true;
if (this.additionalOptions.log)
console.log(
Expand Down

0 comments on commit 30c6cc0

Please sign in to comment.