mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2026-05-23 04:23:45 -07:00
Merge pull request #62 from eagafonov/master
Remove extra allocation of XML Decoder
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user