bonjour icon indicating copy to clipboard operation
bonjour copied to clipboard

Catch error event when multicastdns emit some error

Open feichao opened this issue 7 years ago • 2 comments

Used in Electron, there is no way to catch some internal multicastdns error, when some error occurs, the main thread is crashed. This PR adds a default error callback when user not provide.

feichao avatar Jun 22 '18 03:06 feichao

this would be nice! @watson

okdistribute avatar Jan 10 '19 19:01 okdistribute

This issue is caused by service emitting an error before any error handler can be attached to it: https://github.com/watson/bonjour/blob/master/lib/registry.js#L21

Another way to fix this is to not emit from the service, but from bonjour

okdistribute avatar Jan 10 '19 19:01 okdistribute