Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reader: fix close of closed channel panic in very rare cases #683

Merged
merged 1 commit into from
Aug 2, 2018
Merged

reader: fix close of closed channel panic in very rare cases #683

merged 1 commit into from
Aug 2, 2018

Conversation

unknwon
Copy link
Contributor

@unknwon unknwon commented Aug 1, 2018

@redHJ
Copy link
Collaborator

redHJ commented Aug 1, 2018

lgtm

close(r.readChan)
close(r.errChan)
}
return
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

原来这里没有return,下面确定不要执行吗

close(r.readChan)
close(r.errChan)
}
return
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

原来这里没有return,下面确定不要执行吗

@wonderflow
Copy link
Contributor

LGTM

@wonderflow wonderflow merged commit 2a751a1 into qiniu:master Aug 2, 2018
@unknwon unknwon deleted the PDR-6993-close-closed-channel branch August 2, 2018 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants