Skip to content

db: fix listeners double close#408

Merged
sanderpick merged 1 commit intomasterfrom
sander/fix-listener-close
Jul 17, 2020
Merged

db: fix listeners double close#408
sanderpick merged 1 commit intomasterfrom
sander/fix-listener-close

Conversation

@sanderpick
Copy link
Copy Markdown
Contributor

Closes #401

All listener channels are directly closed on service shutdown, but when their contexts are canceled, they are closed again via Close, which indirectly checks if c has been closed already.

Signed-off-by: Sander Pick <sanderpick@gmail.com>
@sanderpick sanderpick self-assigned this Jul 17, 2020
@sanderpick sanderpick requested review from asutula and jsign July 17, 2020 19:36
Copy link
Copy Markdown
Contributor

@jsign jsign left a comment

Choose a reason for hiding this comment

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

Nice catch!

@sanderpick sanderpick merged commit b42e939 into master Jul 17, 2020
@sanderpick sanderpick deleted the sander/fix-listener-close branch July 17, 2020 19:42
dgtony pushed a commit to anyproto/go-threads that referenced this pull request Aug 24, 2020
Signed-off-by: Sander Pick <sanderpick@gmail.com>
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.

Double channel close in service-side db listener

3 participants