From 1d46cedcbb92edf69f080bf3dca07509a14159e2 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 21 May 2023 13:12:23 +0200 Subject: Introduce xengineering.eu/xmpp.Conn --- limox.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'limox.go') diff --git a/limox.go b/limox.go index 620f009..a7c00e1 100644 --- a/limox.go +++ b/limox.go @@ -86,7 +86,8 @@ func (l *Limox) buttonCallback() { pwd := l.PwdEditor.Text() setLastJid(jid) setLastPwd(pwd) - go xmpp.Run(l.XmppConn, jid, pwd) + c := xmpp.NewConn(l.XmppConn, jid, pwd) + go c.Run() l.State = Connecting case Connecting: log.Println("Aborted connection establishment") -- cgit v1.2.3-70-g09d2