mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-17 23:16:52 +00:00
Merge pull request #27 from crackcomm/patch-2
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