diff options
Diffstat (limited to 'xmpp/jid.go')
| -rw-r--r-- | xmpp/jid.go | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/xmpp/jid.go b/xmpp/jid.go index 0446d19..fd0d7ae 100644 --- a/xmpp/jid.go +++ b/xmpp/jid.go @@ -57,10 +57,12 @@ func hasBind(e []xml.Token) bool {  }  func (s *session) sendBind() { +	s.resourceReq = fmt.Sprintf("%016x", rand.Uint64()) +  	iqStart := xml.StartElement{  		xml.Name{"jabber:client", "iq"},  		[]xml.Attr{ -			xml.Attr{xml.Name{"", "id"}, fmt.Sprintf("%016x", rand.Uint64())}, +			xml.Attr{xml.Name{"", "id"}, s.resourceReq},  			xml.Attr{xml.Name{"", "type"}, "set"},  		},  	}  | 
