# HG changeset patch # User Chris Jones # Date 1325097321 25200 # Node ID fd6781a41e6f9797596e01753264523a87feeaf5 # Parent c9527bbe99a6d20f675093c991445f452d46df62 Don't forget to remove the stanza handler after it's been used. diff -r c9527bbe99a6 -r fd6781a41e6f stream.go --- a/stream.go Wed Dec 28 11:30:10 2011 -0700 +++ b/stream.go Wed Dec 28 11:35:21 2011 -0700 @@ -200,6 +200,7 @@ if st, ok := x.(Stanza) ; ok && handlers[st.XId()] != nil { f := handlers[st.XId()] + handlers[st.XId()] = nil send = f(st) } if send { @@ -475,7 +476,6 @@ "resource"}, Chardata: res} } cl.xmlOut <- msg - // TODO Grab the iq result from the server and update cl.Jid. } func (cl *Client) HandleStanza(id string, f func(Stanza) bool) {