From 8a80c8abe319ccc0e61b63684158bffd1a61ca5a Mon Sep 17 00:00:00 2001 From: Specode <0x0000e000@gmail.com> Date: Tue, 5 Nov 2013 10:03:26 +0800 Subject: [PATCH] fix bug --- xmpp.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xmpp.go b/xmpp.go index ab5eade..6786432 100644 --- a/xmpp.go +++ b/xmpp.go @@ -23,7 +23,6 @@ import ( "errors" "fmt" "io" - "log" "math/big" "net" "net/http" @@ -539,7 +538,7 @@ func nextStart(p *xml.Decoder) (xml.StartElement, error) { for { t, err := p.Token() if err != nil && err != io.EOF { - return nil, err + return xml.StartElement{}, err } switch t := t.(type) { case xml.StartElement: