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

Initiator start doesnt wait for go routine to execute because it doesnt have initiator.waitgroup.wait() #398

Open
muditb007 opened this issue Feb 24, 2020 · 1 comment

Comments

@muditb007
Copy link

muditb007 commented Feb 24, 2020

Initiator start doesnt wait for go routine to execute because it doesnt have initiator.waitgroup.wait(). Need to add i.wg.Wait() to wait wg.Done() to get execute. Currently, It doesnt execute the handleconnection() go routine. It directly ends the start function.
i.wg.Wait() needs to be added after the loop to wait for the waitgroup to get down to zero. Please Let me know if I am missing something.

@prashant-falconx
Copy link

^ Facing the same issue. Any leads guys?

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

No branches or pull requests

2 participants