From 24f1a6d7a20c779d277a523410fdf3e0c677f350 Mon Sep 17 00:00:00 2001 From: Chteufleur Date: Sat, 9 Apr 2016 15:54:13 +0200 Subject: [PATCH] Bug fix on disconnect --- xmpp/xmpp.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xmpp/xmpp.go b/xmpp/xmpp.go index 00ddd53..0d4732b 100644 --- a/xmpp/xmpp.go +++ b/xmpp/xmpp.go @@ -80,10 +80,10 @@ func mainXMPP() { ChanAction <- ActionDeconnexion } } else if v.Type == Type_subscribe { - SendPresenceFrom("", Type_subscribed, v.To, "", "") - } else { + SendPresenceFrom("", Type_subscribed, JidStr, "", "") + } else if v.Type != Type_subscribed { // Type subscribed is send by JID without ressourse + log.Printf("%sAdd connected user. JID : %s", LogInfo, v.From) setJIDconnected[v.From] = true - log.Printf("%sPresence reçut", LogDebug) CurrentStatus = v.Show ChanAction <- ActionConnexion }