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

fix: Fixing races and resouce leaks #168

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

tantra35
Copy link
Contributor

  1. We must provide some cancelable context, so when main applplayer loop ends, any depend network operations must be canceled

  2. When chanel is closed it return empty variables (in case none pointer it returns emptry structs, wil nil chanel and if we do ch recive o send "some data" to nil chanel we hang forever)

  3. chanel for stop must be simple closed, in such case when we do <- closedCh we will signal in any case wneh chanel closed

  4. Dealer must be closed at the end on player loop

1. We must provide some cancelable context, so when main applplayer loop ends, any depend network operations must be canceled
2. When chanel is closed it return empty variables (in case none pointer it returns emptry structs, wil nil chanel and if we do ch recive o send "some data" to nil chanel we hang forever)
3. chanel for stop must be simple closed, in such case when we do <- closedCh we will signal in any case wneh chanel closed
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.

1 participant