summaryrefslogtreecommitdiff
path: root/xmpp/session.go
diff options
context:
space:
mode:
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()