castnow icon indicating copy to clipboard operation
castnow copied to clipboard

Crash when macbook idle sleeps

Open anacrolix opened this issue 10 years ago • 2 comments

events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: This socket is closed.
    at TLSSocket.Socket._writeGeneric (net.js:656:19)
    at TLSSocket.Socket._write (net.js:709:8)
    at doWrite (_stream_writable.js:301:12)
    at writeOrBuffer (_stream_writable.js:288:5)
    at TLSSocket.Writable.write (_stream_writable.js:217:11)
    at TLSSocket.Socket.write (net.js:634:40)
    at PacketStreamWrapper.send (/usr/local/lib/node_modules/castnow/node_modules/castv2-client/node_modules/castv2/lib/packet-stream-wrapper.js:41:15)
    at Client.send (/usr/local/lib/node_modules/castnow/node_modules/castv2-client/node_modules/castv2/lib/client.js:126:11)
    at Channel.send (/usr/local/lib/node_modules/castnow/node_modules/castv2-client/node_modules/castv2/lib/channel.js:34:12)
    at ConnectionController.Controller.send (/usr/local/lib/node_modules/castnow/node_modules/castv2-client/lib/controllers/controller.js:28:16)

anacrolix avatar Apr 26 '15 12:04 anacrolix

If you're on a mac, you can use caffeinate.

caffeinate castnow /path/to/whatever worked for me.

ericfreese avatar Jan 16 '16 06:01 ericfreese

That's a workaround, but not a fix.

anacrolix avatar Apr 18 '16 11:04 anacrolix