jperkin / node-openzwave

node.js interface to libopenzwave
Other
110 stars 55 forks source link

nodejs segfaults on zwave.disconnect() #21

Open bbf opened 10 years ago

bbf commented 10 years ago

Hello,

I'm creating a Node-Red node for node-openzwave, and I have some listeners that run when the flows are starting and stopping. But the thing is that Node-Red sends a stop before sending the start event, and so I end up calling zwave.disconnect() before ever calling the connect. And that is causing zwave to segfault nodejs. For now I'll just use boolean to avoid that, but I don't think that node-openzwave should crash like that.