Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add OnStopServer / OnStopClient methods to Network Authenticator #2447

Merged
merged 4 commits into from
Nov 22, 2020

Conversation

MrGadget1024
Copy link
Collaborator

@MrGadget1024 MrGadget1024 commented Nov 20, 2020

Not having these was an oversight. When StopServer / StopClient are called there's no cleanup, so if they're started again, you'll get warnings on attempting to replace the handlers since they weren't removed.

Additionally, if users want to implement a Cancel feature to authentication, they should call StopClient and there's no callback to the authenticator to break out of the authentication without these additions.

@MrGadget1024 MrGadget1024 added the enhancement New feature or request label Nov 20, 2020
@sonarcloud
Copy link

sonarcloud bot commented Nov 20, 2020

SonarCloud Quality Gate failed.

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@miwarnec
Copy link
Collaborator

can you elaborate on why this is necessary please?

@MrGadget1024
Copy link
Collaborator Author

can you elaborate on why this is necessary please?

Description added to the PR

@miwarnec miwarnec merged commit 3a5da1d into master Nov 22, 2020
@miwarnec miwarnec deleted the AuthenticatorStopMethods branch November 22, 2020 02:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants