stream.go
changeset 30 a77fc342e013
parent 29 a456133ed0ac
child 31 1dc47df5c99f
--- a/stream.go	Thu Dec 29 11:02:21 2011 -0700
+++ b/stream.go	Thu Dec 29 11:11:18 2011 -0700
@@ -497,7 +497,7 @@
 // Send a request to bind a resource. RFC 3920, section 7.
 func (cl *Client) bind(bind *Generic) {
 	res := cl.Jid.Resource
-	msg := &Iq{Type: "set", Id: cl.NextId(), Any:
+	msg := &Iq{Type: "set", Id: <- cl.Id, Any:
 		&Generic{XMLName: xml.Name{Space: nsBind, Local:
 					"bind"}}}
 	if res != "" {