diff options
Diffstat (limited to 'xmpp/session.go')
-rw-r--r-- | xmpp/session.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xmpp/session.go b/xmpp/session.go index 88a01ae..e0819da 100644 --- a/xmpp/session.go +++ b/xmpp/session.go @@ -13,6 +13,7 @@ type SessionShouldDisconnect struct{} type session struct { jid string + pwd string in chan any out chan<- any transport *tls.Conn @@ -25,6 +26,7 @@ func StartSession(out chan<- any, jid string, pwd string) (in chan<- any) { s := session{} s.jid = jid + s.pwd = pwd s.in = make(chan any) s.out = out s.rx = make(chan xml.Token, 0) @@ -50,6 +52,8 @@ func (s *session) run() { s.openStream() defer s.closeStreams() + s.sasl() + s.out <- SessionConnect{} for { |