Skip to content

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

Merged
wonderflow merged 1 commit into
qiniu:masterfrom
unknwon:PDR-6993-close-closed-channel
Aug 2, 2018
Merged

wonderflow merged 1 commit into
qiniu:masterfrom
unknwon:PDR-6993-close-closed-channel

Conversation

@unknwon

@unknwon unknwon commented Aug 1, 2018

Copy link
Copy Markdown
Contributor

@redHJ

redHJ commented Aug 1, 2018

Copy link
Copy Markdown
Collaborator

lgtm

Comment thread reader/sql/sql.go
close(r.readChan)
close(r.errChan)
}
return

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

Comment thread reader/snmp/snmp.go
close(r.readChan)
close(r.errChan)
}
return

Copy link
Copy Markdown
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
Copy Markdown
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