mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2024-12-03 07:42:00 -08:00
Update Disconnect method on client
Remove wrong stanza sends
This commit is contained in:
parent
ccc573c3b2
commit
daf37cf5a8
@ -207,11 +207,6 @@ func (c *Client) Resume(state SMState) error {
|
||||
|
||||
func (c *Client) Disconnect() {
|
||||
// TODO : Wait for server response for clean disconnect
|
||||
presence := stanza.NewPresence(stanza.Attrs{From: c.config.Jid})
|
||||
presence.Type = stanza.PresenceTypeUnavailable
|
||||
c.Send(presence)
|
||||
c.SendRaw(stanza.StreamClose)
|
||||
|
||||
if c.transport != nil {
|
||||
_ = c.transport.Close()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user