mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-18 23:16:49 +00:00
Bitfinex: handle read message error
This commit is contained in:
@@ -100,6 +100,10 @@ func (b *Bitfinex) WebsocketClient() {
|
||||
}
|
||||
|
||||
msgType, resp, err := b.WebsocketConn.ReadMessage()
|
||||
if err != nil {
|
||||
log.Printf("%s Unable to read from Websocket. Error: %s\n", b.GetName(), err)
|
||||
continue
|
||||
}
|
||||
if msgType != websocket.TextMessage {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user