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

null is not an object (evaluating 'self.sock.address') #27

Open
jasonbodily opened this issue Mar 23, 2020 · 2 comments
Open

null is not an object (evaluating 'self.sock.address') #27

jasonbodily opened this issue Mar 23, 2020 · 2 comments

Comments

@jasonbodily
Copy link

SSDP.prototype._start adds listeners, but SSDP.prototype._stop doesn't remove them. The result is sock can be null when 'listening' is called. Should the client.stop() method remove listeners?

@jedashford
Copy link

@jasonbodily Did you end up making a code change to fix this?

@jasonbodily
Copy link
Author

I did in our local code (a kind of hack), by calling removeAllListeners() on the socket before stopping it.

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

2 participants