Bitfinex: handle read message error

This commit is contained in:
Łukasz Kurowski
2017-03-30 19:51:50 +02:00
committed by GitHub
parent 7aff04e4c6
commit 8a6ea5db16

View File

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