-
Notifications
You must be signed in to change notification settings - Fork 357
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
Check returned errors before deferring Close() #60
Labels
Comments
@riking the conn, err := NewDialer(server.URL)
if err != nil {
t.Error(err)
return false
}
defer conn.Close() A good luck to you if it can solve the problem. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This pattern is repeated several times in melody_test.go:
However, if there is an error, this is liable to cause a null reference panic.
The text was updated successfully, but these errors were encountered: