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

Reverted deadlock fix (Affected other receivers) #104

Merged
merged 1 commit into from
Nov 21, 2019

Conversation

ldstein
Copy link
Contributor

@ldstein ldstein commented Nov 21, 2019

Hi,

This PR reverts a change made in PR #103 which originally addressed an issue in #101.

The previous PR ensured every item.ClickedCh had at least one receiver assigned. This stopped the application from deadlocking when clicking menu items with no assigned Channel receivers.

However, that change has adversely affected menu items with assigned channel receivers. They are currently not consistently being notified on item clicks. See https://stackoverflow.com/questions/15715605/multiple-goroutines-listening-on-one-channel.

Something more sophisticated would be required to handle item.ClickCh with no assigned receivers.

Apologies in advance for the previously introduced bug.

@oxtoacart
Copy link
Contributor

Ha, sorry I didn't catch that in my review. I'm working on a solution now.

@oxtoacart oxtoacart merged commit 237442b into getlantern:master Nov 21, 2019
ropog3ovomou pushed a commit to ropog3ovomou/systray that referenced this pull request Jul 13, 2022
Reverted deadlock fix (Affected other receivers)
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