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

Bugfix/fix leaking listener #40

Merged
merged 3 commits into from
Sep 8, 2017

Conversation

clydzik
Copy link

@clydzik clydzik commented Sep 4, 2017

fixed leaking listener (#39) by switch to key/value structure. it was difficult on index based one
also cleaned git ignore a bit what produce bigger PR by side effect

callbackIndex = -1;
}

int callbackIndex = requestIdGenerator.generate();
final String js = JsEvaluator.getJsForEval(jsCode, callbackIndex);
Copy link
Author

Choose a reason for hiding this comment

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

i kept the int as callback identifier, precision is good enough, less changes

@evgenyneu evgenyneu merged commit 4bbac7b into evgenyneu:master Sep 8, 2017
@evgenyneu
Copy link
Owner

Thank you very much. Do you think it is worth adding a unit test that verifies that the callback has been removed from the list?

@clydzik
Copy link
Author

clydzik commented Sep 9, 2017

I think I did it in testJsCallFinished_runsCallbackAndRemove
If this is not clean enough let me know.

@evgenyneu
Copy link
Owner

Yes, sorry, I missed that. All good :)

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