2
0
mirror of https://github.com/FluuxIO/go-xmpp synced 2024-11-11 07:11:03 +00:00

fix: use correct code in cleanup

This commit is contained in:
Dave Johnston 2020-12-16 13:58:11 +00:00
parent 6fba0f00db
commit e567905024

View File

@ -168,7 +168,7 @@ func (t *WebsocketTransport) cleanup(code websocket.StatusCode) error {
t.queue = nil
}
if t.wsConn != nil {
err = t.wsConn.Close(websocket.StatusGoingAway, "Done")
err = t.wsConn.Close(code, "Done")
t.wsConn = nil
}
if t.closeFunc != nil {