rafthttp: report error to correct chan

release-3.0
Xiang Li 2016-06-03 09:18:02 -07:00
parent b3fee0abff
commit 5183631f17
1 changed files with 1 additions and 1 deletions

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
}