The module should not be doing this. This is a global event handler, and should not be used to handle an event from a specific socket. Instead you should be using the .on('error', function(){ for the socket you want to handle the error for.
This will be leaking a reference to the instance each time listenMulticast() is called, and will be causing companion to exit on error instead of the correct error handling
https://github.com/bitfocus/companion-module-panasonic-avhs/blob/b565dfe1d28845bd43338d59a65a2b289a6e20f3/index.js#L556
The module should not be doing this. This is a global event handler, and should not be used to handle an event from a specific socket. Instead you should be using the
.on('error', function(){
for the socket you want to handle the error for.This will be leaking a reference to the instance each time
listenMulticast()
is called, and will be causing companion to exit on error instead of the correct error handling