Open jasonbodily opened 4 years ago
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?
@jasonbodily Did you end up making a code change to fix this?
I did in our local code (a kind of hack), by calling removeAllListeners() on the socket before stopping it.
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?