Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

fix bug #27

Merged
merged 1 commit into from

2 participants

@specode

sorry, I submit a old code, this is a patch

@mattn mattn merged commit 8da045a into mattn:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 5, 2013
  1. @specode

    fix bug

    specode authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 2 deletions.
  1. +1 −2  xmpp.go
View
3  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:
Something went wrong with that request. Please try again.