summaryrefslogtreecommitdiff
path: root/xmpp/jid.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-07-03 22:17:15 +0200
committerxengineering <me@xengineering.eu>2023-07-03 22:17:15 +0200
commit2fade1039c1842f08b30da5c95b5542b57e38ec6 (patch)
tree329ae6641f6b00f1e0cbf65321ac44b90d0c15e4 /xmpp/jid.go
parentcf520b079743ec95d085a439d00b841c253c564a (diff)
downloadlimox-2fade1039c1842f08b30da5c95b5542b57e38ec6.tar
limox-2fade1039c1842f08b30da5c95b5542b57e38ec6.tar.zst
limox-2fade1039c1842f08b30da5c95b5542b57e38ec6.zip
Move xml.Encoder to session struct
The encoderDecoder sub-struct of the session struct should be removed in little steps. This is the first one.
Diffstat (limited to 'xmpp/jid.go')
-rw-r--r--xmpp/jid.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmpp/jid.go b/xmpp/jid.go
index 332073b..83772fd 100644
--- a/xmpp/jid.go
+++ b/xmpp/jid.go
@@ -81,7 +81,7 @@ func (s *session) sendBind() {
inner.Bind.Xmlns = "urn:ietf:params:xml:ns:xmpp-bind"
inner.Bind.Resource.Content = "limox-" + fmt.Sprintf("%08x", rand.Uint32())
- err := s.ed.tx.EncodeElement(inner, start)
+ err := s.tx.EncodeElement(inner, start)
if err != nil {
log.Println("Could not encode ressource binding!")
}