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

readme example problem #180

Open
amirhoseinjfri opened this issue Jun 24, 2023 · 1 comment
Open

readme example problem #180

amirhoseinjfri opened this issue Jun 24, 2023 · 1 comment

Comments

@amirhoseinjfri
Copy link

amirhoseinjfri commented Jun 24, 2023

hi in the readme example when i put defer c.Close() in anonymous function try to say user disconnected like this:

defer func(){
    log.Println("dc")
    c.Close()
}()

nothing happen when user press disconnect or even when they lose connection . thanks

@cristaloleg
Copy link
Collaborator

cristaloleg commented Jun 26, 2023

Hey, do you have a full reproducer? Thanks.

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

No branches or pull requests

2 participants