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

Don't attempt to write to callback channels that we don't support #405

Merged
merged 1 commit into from
Nov 30, 2018

Conversation

kevpar
Copy link
Member

@kevpar kevpar commented Nov 30, 2018

Previously, if we received an HCS callback of a type that we don't support, we wouldn't have a channel prepared for it. This causes a send to a nil channel, which hangs forever.

Now, we will only send to a channel if the channel has been prepared, and will otherwise log a warning.

Copy link
Contributor

@jterry75 jterry75 left a comment

Choose a reason for hiding this comment

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

LGTM. Should we log the unknown type?

Copy link
Contributor

@jterry75 jterry75 left a comment

Choose a reason for hiding this comment

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

LGTM

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.

2 participants