Skip to content

Conversation

@NazmiAltun
Copy link
Contributor

@NazmiAltun NazmiAltun commented Dec 24, 2019

Event that is subscribed to EventSourceCreated should be unsubscribed to avoid memory leak.

}

EnableEventSources(collector);
EventSourceCreated += OnEventSourceCreated;
Copy link

@george-chakhidze george-chakhidze Jan 9, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably simply overriding EventListener.OnEventSourceCreated method could be simpler, you will not have to be bothered about unsubscribing at all.

Copy link
Owner

@djluck djluck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution- looks good to me.

@djluck djluck merged commit 1300704 into djluck:master Jan 30, 2020
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.

3 participants