mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-17 23:16:52 +00:00
Kraken: Fix WS Auth endpoints not re-enabled (#1334)
When Kraken has a disconnect or failure that sets SetCanUseAuthenticatedEndpoints(false), it's never re-enabled when the websocket is reconnected That means all subsequent requests would fall back to rest
This commit is contained in:
@@ -117,6 +117,7 @@ func (k *Kraken) WsConnect() error {
|
||||
k.Name,
|
||||
err)
|
||||
} else {
|
||||
k.Websocket.SetCanUseAuthenticatedEndpoints(true)
|
||||
k.Websocket.Wg.Add(1)
|
||||
go k.wsFunnelConnectionData(k.Websocket.AuthConn, comms)
|
||||
err = k.wsAuthPingHandler()
|
||||
|
||||
Reference in New Issue
Block a user