Fix bug in receiveEventsRoutine error handling

This commit is contained in:
Jae Kwon
2016-02-08 02:20:34 -08:00
parent 8b7969d6ea
commit 1370f89864
+1 -1
View File
@@ -94,7 +94,7 @@ func (wsc *WSClient) receiveEventsRoutine() {
continue
}
if response.Error != "" {
wsc.ErrorsCh <- fmt.Errorf(err.Error())
wsc.ErrorsCh <- fmt.Errorf(response.Error)
continue
}
wsc.ResultsCh <- *response.Result