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

Added mutex to agent close to avoid panic #86

Merged
merged 1 commit into from Feb 20, 2019
Merged

Conversation

andrehp
Copy link
Contributor

@andrehp andrehp commented Feb 12, 2019

The panic was caused by trying to close the channel multiple times,
this was fixed by adding a mutex to the close operation.

Fixes #85

@coveralls
Copy link

coveralls commented Feb 12, 2019

Pull Request Test Coverage Report for Build 754

  • 3 of 3 (100.0%) changed or added relevant lines in 1 file are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.02%) to 68.846%

Files with Coverage Reduction New Missed Lines %
modules/binary.go 2 73.91%
Totals Coverage Status
Change from base Build 750: -0.02%
Covered Lines: 4285
Relevant Lines: 6224

💛 - Coveralls

The panic was caused by trying to close the channel multiple times,
this was fixed by adding a mutex to the close operation.
@andrehp andrehp merged commit 252ecec into master Feb 20, 2019
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.

Pitaya crashes due to multiple closes on channel
2 participants