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

Init() cleanly after Close() #147

Merged
merged 1 commit into from
Aug 17, 2018
Merged

Conversation

kenan-rhoton
Copy link
Contributor

This is not the greatest or most beautiful solution to #100, but it does the job.

It's basically saying: "Hey, Garbage Collector, take care of cleaning up for me, will ya?"

Any improvements are welcome, but I've tried freeing up pretty much everything in DefaultEvtStream to avoid discarding it like a madman, yet it seems that the Handles never get properly freed (probably due to my lack of understanding of the system).

@kenan-rhoton
Copy link
Contributor Author

I believe a call to DefaultEvtStream.ResetHandles() or similar is needed, but I couldn't find a test case where that was the case...

@cjbassi cjbassi merged commit 6e522b9 into gizak:master Aug 17, 2018
cjbassi added a commit that referenced this pull request Aug 17, 2018
@cjbassi
Copy link
Contributor

cjbassi commented Aug 17, 2018

Thanks!

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