diff --git a/xmpp.go b/xmpp.go index 1c3c773..85957c0 100644 --- a/xmpp.go +++ b/xmpp.go @@ -330,6 +330,7 @@ func NewClientNoTLS(host, user, passwd string, debug bool) (*Client, error) { // Close closes the XMPP connection func (c *Client) Close() error { if c.conn != (*tls.Conn)(nil) { + fmt.Fprintf(c.stanzaWriter, "\n") return c.conn.Close() } return nil