fix: use correct code in cleanup

pull/168/head
Dave Johnston 4 years ago
parent 6fba0f00db
commit e567905024

@ -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 {

Loading…
Cancel
Save