summaryrefslogtreecommitdiff
path: root/xmpp/session.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-06-05 18:48:54 +0200
committerxengineering <me@xengineering.eu>2023-06-05 18:48:54 +0200
commit2d9864426272055151c42cf6bc2d13fbe11ca50c (patch)
tree242749003d4b0520c6d864674d3a85bc55deaf38 /xmpp/session.go
parentfeb6a5a38ba15d0cf4bd88283093174991e66eaa (diff)
downloadlimox-2d9864426272055151c42cf6bc2d13fbe11ca50c.tar
limox-2d9864426272055151c42cf6bc2d13fbe11ca50c.tar.zst
limox-2d9864426272055151c42cf6bc2d13fbe11ca50c.zip
Re-implement XML decoding
Diffstat (limited to 'xmpp/session.go')
-rw-r--r--xmpp/session.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmpp/session.go b/xmpp/session.go
index 234c2e6..080fb21 100644
--- a/xmpp/session.go
+++ b/xmpp/session.go
@@ -40,6 +40,8 @@ func (s *session) run() {
defer s.transport.Close()
s.ed = newEncoderDecoder(s)
+ go s.ed.run()
+ defer func() { s.ed.terminator <- true }()
s.openStream()
defer s.closeStreams()