Closed ptx2 closed 4 years ago
Same issue and fix as this one on noble: https://github.com/abandonware/noble/pull/111
Note there is another similar check on the next line:
https://github.com/abandonware/bleno/pull/14/files#diff-cd3778d99958c91fd4b08c0b91c0dd7aL627
} else if (error.message === 'Network is down') {
// no-op
}
That looks like it should change to error.code === 'ENETDOWN'
. Although it doesn't actually do anything so perhaps it could just be removed?
Check the error code instead of the error message as the message is not guaranteed to be stable.