diff --git a/xmpp/xmpp.go b/xmpp/xmpp.go index 283a9d2..f4f9806 100644 --- a/xmpp/xmpp.go +++ b/xmpp/xmpp.go @@ -137,9 +137,9 @@ func must(v interface{}, err error) interface{} { } func sendNotSupportedFeature(iq *xmpp.Iq) { - reply := iq.Response(xmpp.IQTypeError) - reply.PayloadEncode(xmpp.NewError("cancel", xmpp.FeatureNotImplemented, "")) - comp.Out <- reply + reply := iq.Response(xmpp.IQTypeError) + reply.PayloadEncode(xmpp.NewError("cancel", xmpp.FeatureNotImplemented, "")) + comp.Out <- reply } func Disconnect() {