mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2025-11-23 18:13:42 -08:00
fix: use correct code in cleanup
This commit is contained in:
@@ -168,7 +168,7 @@ func (t *WebsocketTransport) cleanup(code websocket.StatusCode) error {
|
|||||||
t.queue = nil
|
t.queue = nil
|
||||||
}
|
}
|
||||||
if t.wsConn != nil {
|
if t.wsConn != nil {
|
||||||
err = t.wsConn.Close(websocket.StatusGoingAway, "Done")
|
err = t.wsConn.Close(code, "Done")
|
||||||
t.wsConn = nil
|
t.wsConn = nil
|
||||||
}
|
}
|
||||||
if t.closeFunc != nil {
|
if t.closeFunc != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user