When running discovery on a machine that currently has no active network (e.g. moved out of wifi range) then I get the following error:
TypeError: Cannot read property 'addMembership' of null
at addMembership [as _onTimeout] (/home/hardillb/.node-red/node_modules/node-red-node-wemo/node_modules/node-ssdp/lib/index.js:183:18)
at Timer.listOnTimeout (timers.js:92:15)
It looks like there is a test wrapped round the addMembership call but no check to see if _createSocket returns null.
When running discovery on a machine that currently has no active network (e.g. moved out of wifi range) then I get the following error:
TypeError: Cannot read property 'addMembership' of null at addMembership [as _onTimeout] (/home/hardillb/.node-red/node_modules/node-red-node-wemo/node_modules/node-ssdp/lib/index.js:183:18) at Timer.listOnTimeout (timers.js:92:15)
It looks like there is a test wrapped round the
addMembership
call but no check to see if _createSocket returns null.