Skip to content

fix: prevent duplicate auth challenge emissions#324

Merged
barrydeen merged 1 commit intobarrydeen:mainfrom
greenart7c3:main
Mar 25, 2026
Merged

fix: prevent duplicate auth challenge emissions#324
barrydeen merged 1 commit intobarrydeen:mainfrom
greenart7c3:main

Conversation

@greenart7c3
Copy link
Contributor

Not sure it's a problem on wisp or the relay but adding a log to the messages i realized the relay was sending multiple auth challenges.
By checking if the auth challenge is the same the auth loop stopped but im not sure this is the correct way of fixing it

In `Relay.kt`, only update `lastChallenge` and emit to `_authChallenges` if the incoming challenge is different from the previous one.
@barrydeen barrydeen merged commit 4a0b094 into barrydeen:main Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants