Closed cpg closed 11 years ago
I appreciate that readFrames does need to be improved, but these changes are not in keeping with the current naming scheme and does lose some subtle functions. I'll do equivalent refactoring.
ok. truth be told, i was not paying much attention to the pattern of names for functions, so yeah, it's better to have similar names.
I just noticed something else. In reading more, there is this piece of code that might be calling the previous function i suggested, if it were not for the last check for err == ErrConnNil, and the message. is that something that the other function i suggested might benefit from as well? (once you do your equivalent refactoring).
Yes, well spotted. I'm about to push the changes.
factoring some things out of readFrames to simplify understanding what's going on