Skip to content

Commit

Permalink
Merge branch 'master' into cayman/monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
wemeetagain committed Nov 29, 2023
2 parents 121327f + 70ab967 commit fc95d8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/discv5/src/kademlia/bucket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ export class Bucket extends (EventEmitter as { new (): BucketEventEmitter }) {
// Update firstConnectedIndex
switch (entry.status) {
case EntryStatus.Connected: {
if (this.firstConnectedIndex === index && index === this.nodes.length) {
if (this.firstConnectedIndex === index && index === this.nodes.length - 1) {
// It was the last connected node.
delete this.firstConnectedIndex;
}
Expand Down

0 comments on commit fc95d8b

Please sign in to comment.