stfnhmplr / homee-api

a library to interact with homee
40 stars 6 forks source link

make sure to only close connections that are initialized #4

Closed Apollon77 closed 4 years ago

Apollon77 commented 4 years ago

This is to prevent error like:

TypeError: Cannot read property 'close' of null at Homee.disconnect (/opt/iobroker/node_modules/homee-api/homee.js:466:13) at process.on (/opt/iobroker/node_modules/iobroker.homee/main.js:233:15) at process.emit (events.js:203:15)

stfnhmplr commented 4 years ago

Thank you!