Merge pull request #27 from crackcomm/patch-2

Bitfinex: handle read message error
This commit is contained in:
thrasher
2017-03-31 12:31:01 +11:00
committed by GitHub

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
}