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

Exception about removeEventListener #123

Open
HughWick opened this issue Nov 26, 2021 · 0 comments
Open

Exception about removeEventListener #123

HughWick opened this issue Nov 26, 2021 · 0 comments

Comments

@HughWick
Copy link

I tried to remove the EventListener after getting the serialPort object in another class and found an exception, the final reason is that I did not add the EventListener beforehand, I tried to use the getEventListener (there is no such method)
or
the getEventListenerAdded flag

//but the variable is private
 private boolean eventListenerAdded = false;

to get if there is currently an EventListener event.

Is there something I'm doing wrong?

Can you add a flag function to get whether there is currently an EventListener in the next version

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

1 participant