bradfitz / go-smtpd

SMTP server library for Go
BSD 3-Clause "New" or "Revised" License
212 stars 67 forks source link

Handle errors returned by Close(), if any. #5

Closed pranavrc closed 9 years ago

pranavrc commented 10 years ago

Since the Close() function seems to be a callback that happens during end of data, shouldn't s.sendlinef("250 2.0.0 Ok: queued") be done only after handling any errors that the User wants to return from Close()?