summaryrefslogtreecommitdiff
path: root/xmpp/session.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-06-04 17:12:04 +0200
committerxengineering <me@xengineering.eu>2023-06-05 17:54:40 +0200
commit89d44601930f4a9452fd40c2262652b1a847a8cf (patch)
tree5d638a3b2ec9d11b5422627863ada059cc949fb6 /xmpp/session.go
parent3c33d393ddf06b6552b6dd7fbe85ddb985233968 (diff)
downloadlimox-89d44601930f4a9452fd40c2262652b1a847a8cf.tar
limox-89d44601930f4a9452fd40c2262652b1a847a8cf.tar.zst
limox-89d44601930f4a9452fd40c2262652b1a847a8cf.zip
Re-implement XML encoding
Diffstat (limited to 'xmpp/session.go')
-rw-r--r--xmpp/session.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmpp/session.go b/xmpp/session.go
index 71b3acf..db9a079 100644
--- a/xmpp/session.go
+++ b/xmpp/session.go
@@ -24,8 +24,6 @@ func StartSession(out chan any, jid string, pwd string) chan any {
s.in = make(chan any)
s.out = out
- s.ed = newEncoderDecoder(&s)
-
go s.run()
return s.in
@@ -38,6 +36,8 @@ func (s *session) run() {
if err != nil { return }
defer s.transport.Close()
+ s.ed = newEncoderDecoder(s)
+
s.out <- SessionConnect{}
for {