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

stop null referencing error #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

dpjanes
Copy link

@dpjanes dpjanes commented May 4, 2015

I'm constantly getting the following crash

…node_modules/castv2-client/node_modules/castv2/lib/client.js:53
self.ps.removeListener('packet', onpacket);
       ^
TypeError: Cannot read property 'removeListener' of null
at TLSSocket.onclose (/Users/davidjanes/iotdb/iot/homestar-chromecast/node_modules/chromecast-js/node_modules/castv2-client/node_modules/castv2/lib/client.js:53:12)
at TLSSocket.g (events.js:199:16)
at TLSSocket.emit (events.js:107:17)
at TCP.close (net.js:485:12)

I'm not sure of the exact triggering mechanism - perhaps onclose is being called twice. It happens after several hours of operation.

The code change checks to see if values are null

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