Skip to content

Commit

Permalink
Merge pull request xmppo#62 from eagafonov/master
Browse files Browse the repository at this point in the history
Remove extra allocation of XML Decoder
  • Loading branch information
mattn committed Dec 24, 2015
2 parents 9aeb372 + 9df9a5b commit 089ebf9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions xmpp.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,12 +276,6 @@ func cnonce() string {
}

func (c *Client) init(o *Options) error {
if o.Debug {
// For debugging: the following causes the plaintext of the connection to be duplicated to stderr.
c.p = xml.NewDecoder(tee{c.conn, os.Stderr})
} else {
c.p = xml.NewDecoder(c.conn)
}

var domain string
var user string
Expand Down

0 comments on commit 089ebf9

Please sign in to comment.