Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Commit

Permalink
Close the data writer after pushing to consume the 250 OK
Browse files Browse the repository at this point in the history
 message instead of returning it as an error.
  • Loading branch information
MFAshby committed Jul 5, 2019
1 parent 9e79780 commit ef936ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions process/message_sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ func (s *sender) sendToHost(to, from, host string, content []byte) error {
if err != nil {
return err
}
err = writeCloser.Close()
if err != nil {
return err
}
return client.Quit()
}

Expand Down

0 comments on commit ef936ab

Please sign in to comment.