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

Remove on('stateChange') listener once poweredOn #24

Merged
merged 1 commit into from
Jan 8, 2023

Conversation

quentinms
Copy link
Owner

@quentinms quentinms commented Dec 22, 2022

Remove the listener so we start fresh each time and we try to avoid the

MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 stateChange listeners added to [Noble]. Use emitter.setMaxListeners() to increase limit

warning

Might help for #20

Remove the listener so we start fresh each time and avoid the
```
MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 stateChange listeners added to [Noble]. Use emitter.setMaxListeners() to increase limit
```
warning

Might fix #20
@quentinms quentinms marked this pull request as ready for review January 8, 2023 17:07
@quentinms quentinms merged commit 363d77c into main Jan 8, 2023
@quentinms quentinms deleted the possible-eventemitter-memory-leak-detected-fix branch January 8, 2023 17:07
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.

1 participant