Skip to content

Commit

Permalink
remove duplicate conn timeout'
Browse files Browse the repository at this point in the history
  • Loading branch information
octopepper committed Dec 10, 2018
1 parent 2c0de5c commit 9661bd6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions checkmail.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ func ValidateHost(email string) error {
}
defer client.Close()

t := time.AfterFunc(forceDisconnectAfter, func() { client.Close() })
defer t.Stop()

err = client.Hello("checkmail.me")
if err != nil {
return NewSmtpError(err)
Expand Down
3 changes: 1 addition & 2 deletions checkmail_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ var (
{mail: " [email protected]", format: false, account: false},
{mail: "test@wrong domain.com", format: false, account: false},
{mail: "é&ààà@gmail.com", format: false, account: false},
{mail: "[email protected]", format: true, account: true},
{mail: "[email protected]", format: true, account: true},
{mail: "[email protected]", format: true, account: false},
{mail: "[email protected]", format: true, account: false},
}
)
Expand Down

0 comments on commit 9661bd6

Please sign in to comment.