Merge pull request #5555 from xiang90/fix_rm

rafthttp: report error to correct chan
This commit is contained in:
Xiang Li 2016-06-03 09:48:43 -07:00
commit 634b9584ef

View File

@ -279,7 +279,7 @@ type streamReader struct {
func (r *streamReader) start() {
r.stopc = make(chan struct{})
r.done = make(chan struct{})
if r.errorc != nil {
if r.errorc == nil {
r.errorc = r.tr.ErrorC
}