1
0
Fork 0

Bug fix on disconnect

This commit is contained in:
Chteufleur 2016-04-09 15:54:13 +02:00
parent e98a9df154
commit 24f1a6d7a2
1 changed files with 3 additions and 3 deletions

View File

@ -80,10 +80,10 @@ func mainXMPP() {
ChanAction <- ActionDeconnexion ChanAction <- ActionDeconnexion
} }
} else if v.Type == Type_subscribe { } else if v.Type == Type_subscribe {
SendPresenceFrom("", Type_subscribed, v.To, "", "") SendPresenceFrom("", Type_subscribed, JidStr, "", "")
} else { } 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 setJIDconnected[v.From] = true
log.Printf("%sPresence reçut", LogDebug)
CurrentStatus = v.Show CurrentStatus = v.Show
ChanAction <- ActionConnexion ChanAction <- ActionConnexion
} }