Brandawg93 / homebridge-nest-cam_old

Use your Nest Cam as IP camera in HomeKit.
Apache License 2.0
92 stars 14 forks source link

Error when live and set to home (turn off video) #21

Open outaTiME opened 6 years ago

outaTiME commented 6 years ago

Hi guys, im getting the following error when i come back to home and automatically turn off video.

/usr/local/lib/node_modules/homebridge-nest-cam/lib/streamer.js:106
    if (self.socket.connecting || !self.socket.encrypted) {
                    ^

TypeError: Cannot read property 'connecting' of undefined
    at NexusStreamer._sendMessage (/usr/local/lib/node_modules/homebridge-nest-cam/lib/streamer.js:106:21)
    at messages.forEach (/usr/local/lib/node_modules/homebridge-nest-cam/lib/streamer.js:98:14)
    at Array.forEach (<anonymous>)
    at NexusStreamer._processPendingMessages (/usr/local/lib/node_modules/homebridge-nest-cam/lib/streamer.js:97:16)
    at NexusStreamer.handleNexusPacket (/usr/local/lib/node_modules/homebridge-nest-cam/lib/streamer.js:256:14)
    at NexusStreamer.handleNexusData (/usr/local/lib/node_modules/homebridge-nest-cam/lib/streamer.js:312:12)
    at TLSSocket.self.socket.on (/usr/local/lib/node_modules/homebridge-nest-cam/lib/streamer.js:83:12)
    at TLSSocket.emit (events.js:160:13)
    at addChunk (_stream_readable.js:269:12)
    at readableAddChunk (_stream_readable.js:256:11)
    at TLSSocket.Readable.push (_stream_readable.js:213:10)
    at TLSWrap.onread (net.js:602:20)