forked from chteufleur/go-xmpp4steam
Bug fix on disconnect
This commit is contained in:
parent
e98a9df154
commit
24f1a6d7a2
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue