diff --git a/process/message_sender.go b/process/message_sender.go index f6d071b..0a2935a 100644 --- a/process/message_sender.go +++ b/process/message_sender.go @@ -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() }